1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-24 02:17:40 +00:00

fixes to some warnings in g++ c++20

This commit is contained in:
Zeno Rogue
2025-03-30 12:51:16 +02:00
parent 546161ce28
commit 283928bf5e
2 changed files with 3 additions and 3 deletions

View File

@@ -73,7 +73,7 @@ bool ikappear(int i) {
return ikmerge(i);
}
const int glyphs = ittypes + motypes;
const int glyphs = int(ittypes) + int(motypes);
int gfirsttime[glyphs], glasttime[glyphs], gcopy[glyphs], ikland[glyphs];
int glyphorder[glyphs];
@@ -302,7 +302,7 @@ bool displayglyph(int cx, int cy, int buttonsize, char glyph, color_t color, int
qty < 100 ? buttonsize / 2 :
buttonsize / 3;
if(id == moMutant + ittypes && clearing::imputed.nonzero()) {
if(id == int(moMutant) + int(ittypes) && clearing::imputed.nonzero()) {
bignum bn = clearing::imputed + qty;
str = short_form(bn);
bsize = buttonsize / 4;