Re: examples/loadables/finfo.c type problems

2018-09-09 Thread Christian Weisgerber
Chet Ramey: > > printf("%ld\n", (long) st->st_size); > > > > which potentially truncate values. > > Pretty much all the systems bash runs on these days have 64-bit longs. > How big a file do you have? But the fix is the same as above. 32-bit platforms (IA-32, ARMv7) are still ar

Re: examples/loadables/finfo.c type problems

2018-09-09 Thread Chet Ramey
On 9/7/18 5:28 PM, Christian Weisgerber wrote: > Compiling examples/loadables/finfo.c (bash 4.4.23, 5.0-alpha) on > OpenBSD produces various warnings about ill-matched types: Yeah, it looks like OpenBSD has some unique type sizes here. Unfortunately, there aren't portable printf format specifiers

examples/loadables/finfo.c type problems

2018-09-07 Thread Christian Weisgerber
Compiling examples/loadables/finfo.c (bash 4.4.23, 5.0-alpha) on OpenBSD produces various warnings about ill-matched types: ---> finfo.c:325:20: warning: format specifies type 'long' but the argument has type 'time_t' (aka 'long long') [-Wformat] printf("%l