CLongLong>>#value: can fail on LargeNegativeInteger

Project:GNU Smalltalk
Component:VM
Category:bug
Priority:normal
Assigned:tgg
Status:fixed
Description

Step to reproduce:

st> a := (-2 raisedTo: 31) - 1.
st> CLongLong value: a.
Object: LargeNegativeInteger new: 5 "<0x403cdad8>" error: did not understand #cObjStoredType
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
LargeNegativeInteger(Object)>>doesNotUnderstand: #cObjStoredType (SysExcept.st:1448)
CLongLong(CObject)>>at:put:type: (CObject.st:447)
CLongLong(CScalar)>>value: (CObject.st:562)
CLongLong class(CScalar class)>>value: (CObject.st:507)
UndefinedObject>>executeStatements (a String:1)
nil

Updates

#1 submitted by Paolo Bonzini on Fri, 06/15/2012 - 07:06
Status:patch» fixed

Applied, thanks!

User login