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:
Robert Manner
2022-11-08 14:47:40 +01:00
committed by Nico Williams
parent 997916e3f6
commit 65e5b0ab79
4 changed files with 17 additions and 17 deletions

View File

@@ -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;