gpsd-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: long long unsigned on 32-bit machines


From: Gary E. Miller
Subject: Re: long long unsigned on 32-bit machines
Date: Mon, 27 Jan 2020 15:08:54 -0800

Yo Sanjeev!

On Sun, 26 Jan 2020 14:40:25 +0800
Sanjeev Gupta <address@hidden> wrote:

> In commit a440745838e3252f0e646f2e154badf58e344ed4
> Bernd changed:
> This creates warning on 32-bit machines:

Yeah, this comes up every few weeks.  Fix pushed.

> If I change the format to %llu , the build on 32-bit works, but then,
> on a 64-bit:

Yeah, half way to correct.  The rest is to cast "i + 1" to (unsigned long
long).

> I think the issue is that we are mixing up two ways, the "long
> unsigned", and the specific types.

Yup.  We go around in curcles on this, but we keep coming back to
forcing size when we need to, then casting to something overly large
for printf(). The POSIX macros (PRIu64) do not work a lot of places.

> BTW, is anyone else running on 32-bits, in production?

Yeah.  A lot of the embedded guys, and Access Points (OpenWRT, etc.) are
stuck in 32-bit land.  Oh, and Raspbian, of course.

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        address@hidden  Tel:+1 541 382 8588

            Veritas liberabit vos. -- Quid est veritas?
    "If you can't measure it, you can't improve it." - Lord Kelvin

Attachment: pgpo59yw8O_DL.pgp
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]