gpsd-dev
[Top][All Lists]
Advanced

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

Re: [gpsd-dev] Bug found in unix_to_iso8601()


From: Gary E. Miller
Subject: Re: [gpsd-dev] Bug found in unix_to_iso8601()
Date: Thu, 8 Nov 2018 15:54:21 -0800

Yo Peter!

On Thu, 08 Nov 2018 21:43:38 +0000 (GMT)
Peter Liu <address@hidden> wrote:

> If the fractional part is 0.9995 or larger, it is rounded up and
> tractstr returns "1.000". It is not ".999".    

Thank you very much for this bug report!

Fix, and new this for this bug, pushed to git head.

Luckily it only affected one regression test.

Now I'll look for other places in the code with similar structure.

Luckily timeval and timespec do not have this problem.  So another
reason to move from timestamp_t to timespec.

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: pgpdpE2l7fh8h.pgp
Description: OpenPGP digital signature


reply via email to

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