diff options
author | lloyd <[email protected]> | 2009-07-10 15:00:37 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-07-10 15:00:37 +0000 |
commit | 7308b52db7689bb1d393135ca1818f768600e7f9 (patch) | |
tree | 6c632da851d3270580a8d4c83abc752492dc4b30 /src/entropy/entropy_src.h | |
parent | 58d41204859620f7dd101ba175f404fd76e51310 (diff) |
static_cast a double before returning it as a u32bit to avoid a warning
with some older versions of gcc
Diffstat (limited to 'src/entropy/entropy_src.h')
-rw-r--r-- | src/entropy/entropy_src.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entropy/entropy_src.h b/src/entropy/entropy_src.h index 78e07a7a5..a1a53fafb 100644 --- a/src/entropy/entropy_src.h +++ b/src/entropy/entropy_src.h @@ -41,7 +41,7 @@ class Entropy_Accumulator { if(collected_bits >= entropy_goal) return 0; - return (entropy_goal - collected_bits); + return static_cast<u32bit>(entropy_goal - collected_bits); } void add(const void* bytes, u32bit length, double entropy_bits_per_byte) |