Improved performance of the data finalizer

This commit is contained in:
Eduard Urbach 2025-03-04 16:54:17 +01:00
parent ada7aaa1e2
commit bfa8f9c7c4
Signed by: eduard
GPG key ID: 49226B848C78F6C8
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)
}