Open GoogleCodeExporter opened 9 years ago
The loss of precision error is identical to the build failure reported under
Mac OS X when the target platform is x86_64. The solution is the same: change
the cast from `(unsigned int)` to `(uintptr_t)`. This avoids assumptions about
pointer width.
One way to avoid the format error is to cast the argument to match the expected
type. However, since the declared type of the value is `uint64_t`, a better
solution would likely be:
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
and then use the format specifier `PRIx64`.
A patch is attached.
Original comment by jeremyw....@gmail.com
on 16 Nov 2010 at 2:02
Attachments:
Issue 10 has been merged into this issue.
Original comment by dkers...@gmail.com
on 17 Nov 2010 at 7:38
the patch that jermy made worked great for me running 64bit ubuntu i think it
shoul be applied to the main repo
Original comment by ca...@callesag.se
on 18 Aug 2012 at 8:57
Original issue reported on code.google.com by
pierr...@gmail.com
on 13 Nov 2010 at 6:18