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

20 Jul
2012
20 Jul
'12
11:17 p.m.
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;
4733
Age (days ago)
4733
Last active (days ago)
0 comments
1 participants
participants (1)
-
zwol@torproject.org