1 --- libreport-2.6.0/tests/xfuncs.at.orig 2015-06-08 17:13:44.000000000 +0200
2 +++ libreport-2.6.0/tests/xfuncs.at 2015-06-27 17:10:28.975037433 +0200
5 char buf[sizeof(unsigned long) * 3 + 1];
7 - snprintf(buf, sizeof(buf), "%lu", 1LU + UINT_MAX);
8 + snprintf(buf, sizeof(buf), "%llu", 1LLU + UINT_MAX);
9 assert(try_atou(buf, &uint_value) != 0 || !"Above UINT_MAX");
10 assert(uint_value == 12345);
14 char buf[sizeof(long) * 3 + 1];
16 - snprintf(buf, sizeof(buf), "%ld", 1L + INT_MAX);
17 + snprintf(buf, sizeof(buf), "%lld", 1LL + INT_MAX);
18 assert(try_atoi(buf, &int_value) != 0 || !"Parse INT_MAX+1");
19 assert(int_value == 12345 || !"Above INT_MAX");
21 - snprintf(buf, sizeof(buf), "%ld", -1L + INT_MIN);
22 + snprintf(buf, sizeof(buf), "%lld", -1LL + INT_MIN);
23 assert(try_atoi(buf, &int_value) != 0 || !"Parse INT_MIN-1");
24 assert(int_value == 12345 || !"Belove INT_MIN");
28 char buf[sizeof(long) * 3 + 1];
30 - snprintf(buf, sizeof(buf), "%ld", 1L + INT_MAX);
31 + snprintf(buf, sizeof(buf), "%lld", 1LL + INT_MAX);
32 assert(try_atoi_positive(buf, &positive_value) != 0);
33 assert(positive_value == 12345 || !"Above INT_MAX");