When trying to compile libiscsi on a 32 bit Ubuntu 10.04 with gcc 4.4.3 errors like the following are produced: test_get_lba_status_beyond_eol.c:45: error: integer constant is too large for ‘long’ type This is because we don't specify that we are explictly compiling to the c99 standard and as such gcc defaults to gnu90 standard. This in turn means the maximum default type of integer literals is unsigned long int which not big enough to hold the literal on a 32 bit architecture. Fix this by adding the ULL suffix to all large integer literals. Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
1.9 KiB
1.9 KiB