Re: [OSS-Tools] [PATCH dt-utils 11/12] state: fix formatting of "off_t" variables

2019-02-05 Thread Ulrich Ölmann
On Mon, Feb 04 2019 at 10:06 +0100, Uwe Kleine-König wrote: > On Mon, Feb 04, 2019 at 08:54:29AM +0100, Juergen Borleis wrote: >> On Sunday 03 February 2019 22:48:06 Ulrich Ölmann wrote: >> > Explicitely casting an "off_t" variable to "long long" and formatting it >> > via "%lld" or "%llx"

Re: [OSS-Tools] [PATCH dt-utils 11/12] state: fix formatting of "off_t" variables

2019-02-04 Thread Uwe Kleine-König
On Mon, Feb 04, 2019 at 08:54:29AM +0100, Juergen Borleis wrote: > On Sunday 03 February 2019 22:48:06 Ulrich Ölmann wrote: > > Explicitely casting an "off_t" variable to "long long" and formatting it > > via "%lld" or "%llx" respectively makes 32- as well as 64-bit compilers > > happy (tested

Re: [OSS-Tools] [PATCH dt-utils 11/12] state: fix formatting of "off_t" variables

2019-02-03 Thread Juergen Borleis
On Sunday 03 February 2019 22:48:06 Ulrich Ölmann wrote: > Explicitely casting an "off_t" variable to "long long" and formatting it > via "%lld" or "%llx" respectively makes 32- as well as 64-bit compilers > happy (tested with gcc-8.2.1 and clang-7.0.1). Könnte hier der Cast (intmax_t) und der