]> git.pld-linux.org Git - packages/libreport.git/blob - libreport-ILP32.patch
- release 4 (by relup.sh)
[packages/libreport.git] / libreport-ILP32.patch
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
3 @@ -88,7 +88,7 @@
4  
5          char buf[sizeof(unsigned long) * 3 + 1];
6  
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);
11  
12 @@ -115,11 +115,11 @@
13  
14          char buf[sizeof(long) * 3 + 1];
15  
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");
20  
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");
25  
26 @@ -144,7 +144,7 @@
27  
28          char buf[sizeof(long) * 3 + 1];
29  
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");
34  
This page took 0.071389 seconds and 3 git commands to generate.