1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-18 20:08:06 +00:00

fixed some warnings and errors with ll to int assignment

This commit is contained in:
Zeno Rogue
2020-04-06 08:39:31 +02:00
parent 1b9cdab98c
commit cfbd5f830c
10 changed files with 23 additions and 23 deletions

View File

@@ -1214,12 +1214,12 @@ EX ld raddif(ld a, ld b) {
return d;
}
EX int bucketer(ld x) {
return (long long)(x * 10000 + 100000.5) - 100000;
EX unsigned bucketer(ld x) {
return unsigned((long long)(x * 10000 + 100000.5) - 100000);
}
EX int bucketer(hyperpoint h) {
int dx = 0;
EX unsigned bucketer(hyperpoint h) {
unsigned dx = 0;
if(prod) {
auto d = product_decompose(h);
h = d.second;