KanikaVarma / sudzc

Automatically exported from code.google.com/p/sudzc
0 stars 0 forks source link

classes generated use ctype long for xml schema long, where the latter is bigger on 32bit machines #43

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate classes from WSDL using the xml long type for iOS
2. Generated classes use long for their fields
3. Use a value that is more than 2^sizeof(long) on a 32 bit machine 
4. Overflow happens, because XML schema long != 32bit machine long 

What is the expected output? What do you see instead?
Classes generated should use long long (even NSString has longLongValue 
already).

What version of the product are you using? On what operating system?
iOS, ARC

Please provide any additional information below.
Link to the info about long and it's range, it's clearly more than a long on 
32bit machine. http://www.w3.org/TR/xmlschema-2/#long

Original issue reported on code.google.com by balicki.aleksander on 30 Mar 2012 at 1:52