Skip to content

Commit e8307d8

Browse files
authored
Cast to underlying type to use numeric operators. Fixes #198 (#199)
1 parent cecaa54 commit e8307d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/gameentry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
// ignore texture (currently only supported by ScreenScraper.fr and import)
3232
static const int NO_OF_TYPES =
33-
(int)(log2((GameEntry::Elem::ALL) + 1)) - 1 /* -1 for TEXTURE */;
33+
(int)(log2((uint)GameEntry::Elem::ALL + 1)) - 1 /* -1 for TEXTURE */;
3434

3535
GameEntry::GameEntry() {}
3636

0 commit comments

Comments
 (0)