From 2cae13dc2dccd4ea52db53a530fd92b919709f93 Mon Sep 17 00:00:00 2001 From: mid <> Date: Sun, 9 Feb 2025 22:22:32 +0200 Subject: [PATCH] UB fix --- src/game.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game.h b/src/game.h index 409565c..6aa0f93 100644 --- a/src/game.h +++ b/src/game.h @@ -214,7 +214,7 @@ static inline size_t game_nextid() { } static inline void game_claimentid(size_t i) { - Game.entities.freeIDs[i / 64] |= 1 << (i % 64); + Game.entities.freeIDs[i / 64] |= 1UL << (i % 64); } static inline int game_componentcomparator(const void *a, const void *b) {