aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/entropy/entropy_src.h2
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)