1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-03 03:07:56 +00:00

racing:: fixed racing to use modecode_t not int

This commit is contained in:
Zeno Rogue
2019-09-27 17:34:42 +02:00
parent 3d7242e918
commit bc789e8c18
2 changed files with 12 additions and 4 deletions

View File

@@ -299,9 +299,17 @@ EX string llts(long long i) {
if(i < 10) return its((int) i);
return llts(i/10) + its(i%10);
}
EX string itsh(unsigned int i) {static char buf[16]; sprintf(buf, "%03X", i); return buf; }
EX string itsh(int i) {static char buf[16]; sprintf(buf, "%03X", i); return buf; }
EX string itsh2(int i) {static char buf[16]; sprintf(buf, "%02X", i); return buf; }
EX string itsh(unsigned long long i) {
int i0 = int(i);
int i1 = int(i >> 32);
if(i1) return itsh(i1) + itsh8(i0);
else return itsh(i0);
}
EX logger hlog;
// kz: utility for printing