From 2b7e17b5d997c9cc5f678820628e5c9784483608 Mon Sep 17 00:00:00 2001 From: Charles Ofria Date: Thu, 14 Feb 2019 23:57:23 -0500 Subject: [PATCH] Fixed type issue in math.h --- source/tools/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tools/math.h b/source/tools/math.h index acc969aedd..8fe33467e2 100644 --- a/source/tools/math.h +++ b/source/tools/math.h @@ -104,7 +104,7 @@ namespace emp { if ((dividend % divisor) * 2 == divisor) { // ... by default, the result is rounded up; // with 1/2 probability round down instead - res -= r.GetInt(2); + res -= r.GetUInt(2); } return res; }