From b4f880fd6e096dfed57b1daa2b6dcf42f85824a0 Mon Sep 17 00:00:00 2001 From: Stefan Marr Date: Tue, 20 Aug 2024 22:04:11 +0100 Subject: [PATCH] Add missing braces for integer cache Signed-off-by: Stefan Marr --- src/vm/Universe.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/vm/Universe.cpp b/src/vm/Universe.cpp index 3628b8fc..cea7b696 100644 --- a/src/vm/Universe.cpp +++ b/src/vm/Universe.cpp @@ -788,12 +788,13 @@ void Universe::WalkGlobals(walk_heap_fn walk) { falseClass = static_cast(walk(falseClass)); #if CACHE_INTEGER - for (size_t i = 0; i < (INT_CACHE_MAX_VALUE - INT_CACHE_MIN_VALUE); i++) + for (size_t i = 0; i < (INT_CACHE_MAX_VALUE - INT_CACHE_MIN_VALUE); i++) { #if USE_TAGGING prebuildInts[i] = TAG_INTEGER(INT_CACHE_MIN_VALUE + i); #else prebuildInts[i] = walk(prebuildInts[i]); #endif + } #endif // walk all entries in globals map