Issue 5640: anomaly in that unsigned integers are mapped to signed integers (cobol-rtf) Source: (, ) Nature: Uncategorized Issue Severity: Summary: While skimming the CORBA->COBOL mapping of IDL constructs, I noticed an anomaly in that unsigned integers are mapped to signed integers: > IDL Name > COBOL Representation Integer Range COBOL Typedef > > unsigned short > PIC S9(05) BINARY 0 to 2^16 CORBA-unsigned-short > unsigned long > PIC S9(10) BINARY 0 to 2^32 CORBA-unsigned-long > unsigned long long > PIC S9(18) BINARY 18 numerics CORBA-unsigned-longlong > enum > PIC S9(10) BINARY CORBA-enum > > 1.4.1 Basic Integer Types > > The mapping of long long, > and unsigned long long > was made to PIC S9(18) > and PIC 9(18). Presumably the statement of section 1.4.1 is the correct one? Resolution: Revised Text: Actions taken: September 3, 2002: received issue Discussion: End of Annotations:===== Reply-To: From: "Richard Ross-Langley" To: Subject: RE: OMG Document formal/99-07-51 Date: Tue, 3 Sep 2002 13:58:53 +0100 I will be out of the office until September 9th and will not have access to email during this time. For questions reqarding OMG documents, please contact Juergen Boldt (juergen@omg.org). Regards, Linda FORWARDED to Juergen Boldt -----Original Message----- From: Richard Ross-Langley [mailto:Richard.RossLangley@antlimited.com] Sent: 03 September 2002 13:02 To: linda@omg.org Subject: OMG Document formal/99-07-51 Linda http://cgi.omg.org/docs/formal/99-07-51.pdf While skimming the CORBA->COBOL mapping of IDL constructs, I noticed an anomaly in that unsigned integers are mapped to signed integers: > IDL Name > COBOL Representation Integer Range COBOL Typedef > > unsigned short > PIC S9(05) BINARY 0 to 2^16 CORBA-unsigned-short > unsigned long > PIC S9(10) BINARY 0 to 2^32 CORBA-unsigned-long > unsigned long long > PIC S9(18) BINARY 18 numerics CORBA-unsigned-longlong > enum > PIC S9(10) BINARY CORBA-enum > > 1.4.1 Basic Integer Types > > The mapping of long long, > and unsigned long long > was made to PIC S9(18) > and PIC 9(18). Presumably the statement of section 1.4.1 is the correct one? With best wishes -- Richard Ross-Langley, Customer Support Engineer T: +44 1223 716400 F: +44 1223 716401 D: +44 1223 716420 ANT Limited, Business Park, Cowley Road, Cambridge CB4-0WZ, UK http://www.antlimited.com * LEGAL DISCLAIMER * ANT Limited This message (which includes any files transmitted with it) is confidential and contains information which may be legally privileged. It is intended for the stated addressee(s) only. Access to this email by anyone else is unauthorised. If you are not the intended addressee any disclosure, copying or storage of the contents of this email, or any action taken (or not taken) in reliance on it, is unauthorised and is unlawful. If you are not the addressee, please delete the original and any copies and inform the sender immediately