Use numberWithBool: when pushing true and false values onto the stack.

This commit is contained in:
Wolfgang Lux 2019-03-27 09:22:10 +01:00
parent 09841d976e
commit 9a3eef25c5
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2019-03-27 Wolfgang Lux <wolfgang.lux@gmail.com>
* STBytecodeInterpreter.m (dispatchBytecode:):
Use numberWithBool: when pushing true and false values onto the stack.
2019-03-25 Wolfgang Lux <wolfgang.lux@gmail.com>
* STSmalltalkScriptObject.m (forwardInvocation:):

View file

@ -511,12 +511,12 @@ static Class NSInvocation_class = nil;
case STPushTrueBytecode:
STDebugBytecodeWith(bytecode,receiver);
STPush(stack,[NSNumber numberWithInt:YES]);
STPush(stack,[NSNumber numberWithBool:YES]);
break;
case STPushFalseBytecode:
STDebugBytecodeWith(bytecode,receiver);
STPush(stack,[NSNumber numberWithInt:NO]);
STPush(stack,[NSNumber numberWithBool:NO]);
break;
case STPushRecVarBytecode: