/[darkstattype]
ViewVC logotype

Revision 20


Jump to revision: Previous Next
Author: trond
Date: 2014-04-09T10:26:49Z (6 years, 2 months ago)
Changed paths: 1
Log Message:
64-bit quantities, i.e. int64_t, differ on i386 and amd64.

In the first case it's an alias for long long, but in the second
case it's an alias for long.

The solution seems to be twofold: (1) use printf length modifier for
(unsigned) long long, and (2) explicitly cast each 64-bit quantity
to (unsigned) long long.

Tested on FreeBSD/i386  stable/8 r255624 with gcc 4.2.1.
Tested on FreeBSD/amd64 stable/9 r263963 with clang 3.3.
Tested on FreeBSD/amd64 stable/9 r263963 with clang 3.3 using -m32.


Changed paths

Path Details
Directorytrunk/darkstattype.c modified , text changed

svn@ximalas.info
ViewVC Help
Powered by ViewVC 1.2.1