Skip to content

Commit f9c6819

Browse files
committed
Mutant pharo-project#563, Reverting [ Replaces a literal with its float value ] on method [ set:classIndexTo:formatTo: ] 36/36 test case are EQUIVALENT
1 parent c21880a commit f9c6819

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

smalltalksrc/VMMaker/Spur64BitMemoryManager.class.st

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,6 @@ Spur64BitMemoryManager >> rtRefCountOf: obj put: refCount [
907907

908908
{ #category : #'header access' }
909909
Spur64BitMemoryManager >> set: objOop classIndexTo: classIndex formatTo: format [
910-
911910
"0 = 0 sized objects (UndefinedObject True False et al)
912911
1 = non-indexable objects with inst vars (Point et al)
913912
2 = indexable objects with no inst vars (Array et al)
@@ -922,13 +921,13 @@ Spur64BitMemoryManager >> set: objOop classIndexTo: classIndex formatTo: format
922921
12 - 15 16-bit indexable
923922
16 - 23 byte indexable
924923
24 - 31 compiled method"
925-
926924
<inline: true>
927925
self assert: (classIndex between: 0 and: self classIndexMask).
928-
self assert: (format between: 0.0 and: self formatMask).
929-
self longAt: objOop put: ((self longAt: objOop) bitAnd:
930-
(self formatMask << self formatShift + self classIndexMask)
931-
bitInvert64) + (classIndex + (format << self formatShift))
926+
self assert: (format between: 0 and: self formatMask).
927+
self longAt: objOop
928+
put: ((self longAt: objOop) bitAnd: (self formatMask << self formatShift + self classIndexMask) bitInvert64)
929+
+ (classIndex
930+
+ (format << self formatShift))
932931
]
933932

934933
{ #category : #'header access' }

0 commit comments

Comments
 (0)