05.11.2009 18:26, Denys Vlasenko wrote:
int64_t is not the same as long. Printing it with %li is not
correct.
One solution is to cast: (long)uid
That's probably acceptable given that you pass UID in that variable, but
just in case, if you really need all of those 64 bits, then the
following would be the way to go:
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
//...
ssprintf ("%" PRId64, uid);
PM