Improved performance of the data finalizer

This commit is contained in:
2025-03-04 16:54:17 +01:00
parent e5f0123eea
commit f2db223684
6 changed files with 30 additions and 11 deletions

View File

@ -121,7 +121,7 @@ func (c *compiler) compile(x asm.Instruction) {
case asm.PUSH:
switch operands := x.Data.(type) {
case *asm.Number:
c.code = x86.PushNumber(c.code, operands.Number)
c.code = x86.PushNumber(c.code, int32(operands.Number))
case *asm.Register:
c.code = x86.PushRegister(c.code, operands.Register)
}