
12 Jan
2009
12 Jan
'09
10:04 a.m.
On Mon, Jan 12, 2009 at 09:12:58AM +0100, Arndt Jonasson wrote:
In dump-xsd.c is the code
[...]
The behaviour may vary on different platforms, but at least on some, the cast (unsigned long) above needs to be (unsigned long long), or perhaps removed, otherwise only the least significant 32 bits of the constant will be used. I'm not certain whether %lu ought to be %llu.
Yes, %llu makes more sense; I changed the code to use UINT64_FORMAT (defined in config.h). In general, I think libsmi should be changed to use stdint.h and inttypes.h definitions with fallback definitions for systems that do not have these header files.
/js
--
Juergen Schoenwaelder Jacobs University Bremen gGmbH
Phone: +49 421 200 3587 Campus Ring 1, 28759 Bremen, Germany
Fax: +49 421 200 3103 http://www.jacobs-university.de/