commit efed3c6908bc5351a655545bb898b7be7cb0507c Author: Zack Weinberg zackw@cmu.edu Date: Wed Mar 28 09:02:09 2012 -0700
Revert yesterday's disabling of the static_assert in rng.cc. --- src/rng.cc | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/rng.cc b/src/rng.cc index 149363e..cfddd87 100644 --- a/src/rng.cc +++ b/src/rng.cc @@ -128,10 +128,9 @@ rng_double() unsigned int n; };
-#if 0 static_assert(sizeof(double) == sizeof(uint64_t), "this code works only with 64-bit, IEEE double"); -#endif + union ieee754_double { double d; uint64_t i;
tor-commits@lists.torproject.org