Mercurial > hg
comparison mercurial/ignore.py @ 24016:fb93721cc229
util: add getbefloat64
As far as I can tell, this is wrong. double's format isn't strictly
specified in the C standard, but the wikipedia article implies that
platforms implementing optional Annex F "IEC 60559 floating-point
arithmetic" will work correctly.
My local C experts believe doing *((double *) &t) is a strict aliasing
violation, and that using a union is also one. Doing memcpy appears to
be the least-undefined behavior possible.
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 03 Feb 2015 13:17:21 -0500 |
parents | 0127366df8fe |
children | 8cf7f0c4cb14 |
comparison
equal
deleted
inserted
replaced
24015:e2bf959a5a0d | 24016:fb93721cc229 |
---|