Skip to content

Commit

Permalink
Merge pull request #777 from guillep/constant-conversion-warning
Browse files Browse the repository at this point in the history
Constant conversion warning
  • Loading branch information
guillep committed May 2, 2024
2 parents d1bfe9e + 0b0f26c commit b4da70a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,11 @@ add_compile_options(
-Wno-pointer-integer-compare
-Wno-unknown-pragmas
-Wno-pointer-sign
<<<<<<< HEAD
-Wno-constant-conversion
-Wno-tautological-pointer-compare
=======
>>>>>>> 66015f0470 (Re-enable warnings)
-Wno-deprecated-declarations
-Wno-pointer-to-int-cast
-Wno-compare-distinct-pointer-types
Expand Down
2 changes: 1 addition & 1 deletion smalltalksrc/VMMaker/SpurMemoryManager.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -2004,7 +2004,7 @@ SpurMemoryManager >> allocateNewSpaceSlots: numSlots format: formatField classIn
ifTrue: "for header parsing we put a saturated slot count in the prepended overflow size word"
[self flag: #endianness.
self long32At: freeStart put: numSlots.
self long32At: freeStart + 4 put: self numSlotsMask << self numSlotsHalfShift.
self long32At: freeStart + 4 put: (self cCoerceSimple: (self numSlotsMask << self numSlotsHalfShift) to: #int).
self long64At: newObj put: (self headerForSlots: self numSlotsMask format: formatField classIndex: classIndex)]
ifFalse:
[self long64At: newObj put: (self headerForSlots: numSlots format: formatField classIndex: classIndex)].
Expand Down

0 comments on commit b4da70a

Please sign in to comment.