Skip to content

Commit

Permalink
Add missing braces for integer cache
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Marr <[email protected]>
  • Loading branch information
smarr committed Aug 20, 2024
1 parent 2a4ae6e commit b4f880f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vm/Universe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -788,12 +788,13 @@ void Universe::WalkGlobals(walk_heap_fn walk) {
falseClass = static_cast<GCClass*>(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
Expand Down

0 comments on commit b4f880f

Please sign in to comment.