[
https://issues.apache.org/jira/browse/AXIS2C-1039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12574075#action_12574075
]
Senaka Fernando commented on AXIS2C-1039:
-----------------------------------------
Hi Frank,
I thought we have added this properly. You are expected not to use (int) and
there is a constant to be used as the format specifier,
AXIS2_PRINTF_INT64_FORMAT_SPECIFIER which should be used instead of "%ld". This
takes into consideration, your platform, and also the type of processor on your
system, so that we properly interpret the value. I hope you see no issues with
uint64.
Regards,
Senaka
> int64_t cast down to an in serialization of types
> -------------------------------------------------
>
> Key: AXIS2C-1039
> URL: https://issues.apache.org/jira/browse/AXIS2C-1039
> Project: Axis2-C
> Issue Type: Bug
> Components: code generation
> Affects Versions: Current (Nightly)
> Reporter: Frank Huebbers
>
> In the serialization of the types, I was able to track down a problem where
> int64_t types are cast down to int types, thereby causing truncation
> problems. In one of my generated code excerpts, I get the following:
> sprintf (text_value_3, "%d", (int)_addMyType->property_myInt64Value);
> What this should read instead, however, is the following:
> sprintf (text_value_3, "%ld", _addMyType->property_myInt64Value);
> Frank
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]