[tor-commits] [stegotorus/master] Revert yesterday's disabling of the static_assert in rng.cc.

zwol at torproject.org zwol at torproject.org
Fri Jul 20 23:17:07 UTC 2012


commit efed3c6908bc5351a655545bb898b7be7cb0507c
Author: Zack Weinberg <zackw at 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;





More information about the tor-commits mailing list