how to assign a u_int64_t value larger than int32 with android ndk

210 views
Skip to first unread message

Chun-Kai Hwang

unread,
Sep 7, 2009, 8:25:37 AM9/7/09
to andro...@googlegroups.com
Hi,
 
I want to set a u_int64_t variable with the maximum unsigned 64 bit integer, that is, 18446744073709551614,
but compile with ndk get a error,
I only can set it with 4294967295.
How to avoid such issue?
Thanks for any help.
 
ckh
 

Rohit Grover

unread,
Sep 12, 2009, 10:44:50 PM9/12/09
to andro...@googlegroups.com
Maybe you should try adding the suffix 'LL' when using very large
integer constants in your code.
Reply all
Reply to author
Forward
0 new messages