Yo Eric!

On Thu, 9 Mar 2017 14:35:20 -0500
"Eric S. Raymond" <e...@thyrsus.com> wrote:

> Gary E. Miller <g...@rellim.com>:
> > It gets worse.  Looks like l_fp needs to be int64_t, not uint64_t.
> > Sometimes l_fp's are subtracted to get an offset.  
> 
> It doesn't matter.  All those calculations are casted to within an
> inch of their lives. :-)

Yeah, I see that.

> > And weird things happen in lfp_intv_to_tspec() to guess if l_fp is
> > unsigned or signed...  
> 
> Yes, they do.  I inherited that logic.

Then you're not offended when I change it.

My goal is to fix all -Wsign-conversion warnings.  Right now I see a lot
of bad casts.  I don't like bad casts.
 
> Be very, very careful about changing any of this stuff. I got it to
> where it is by a series of provably behavior-preserving steps from
> the old code. The corner cases are tricky.

I assume you are happy with the tests?  Anythiong you would like tested
better first?

RGDS
GARY
---------------------------------------------------------------------------
Gary E. Miller Rellim 109 NW Wilmington Ave., Suite E, Bend, OR 97703
        g...@rellim.com  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: pgp7NhFhw3xgv.pgp
Description: OpenPGP digital signature

_______________________________________________
devel mailing list
devel@ntpsec.org
http://lists.ntpsec.org/mailman/listinfo/devel

Reply via email to