From 86009d1e497ad3a4663fd7df5fb6b3a836992623 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 13 Feb 2020 11:06:54 +0100 Subject: [PATCH] improved bucketer --- hyperpoint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hyperpoint.cpp b/hyperpoint.cpp index cb0ba230..9c2e8197 100644 --- a/hyperpoint.cpp +++ b/hyperpoint.cpp @@ -1201,7 +1201,7 @@ EX ld raddif(ld a, ld b) { } EX int bucketer(ld x) { - return int(x * 10 + 100000.5) - 100000; + return (long long)(x * 10000 + 100000.5) - 100000; } EX int bucketer(hyperpoint h) {