roken/parse_bytes: fix test for >= terabyte units on 32 bit systems
On 32 bit systems, sizeof(ssize_t) and sizeof(unsigned long aka UL) is 32 bits which is not able to hold the value of a terabyte.
This commit is contained in:

committed by
Nico Williams

parent
997916e3f6
commit
65e5b0ab79
@@ -2162,9 +2162,9 @@ test_default(void)
|
||||
};
|
||||
|
||||
TESTDefault values[] = {
|
||||
{ "Heimdal", 8, 9223372036854775807, 1 },
|
||||
{ "Heimdal", 8, 9223372036854775807LL, 1 },
|
||||
{ "heimdal", 7, 2147483647, 0 },
|
||||
{ "Heimdal", 7, 9223372036854775807, 0 },
|
||||
{ "Heimdal", 7, 9223372036854775807LL, 0 },
|
||||
{ "heimdal", 8, 2147483647, 1 },
|
||||
};
|
||||
int i, ret;
|
||||
|
Reference in New Issue
Block a user