Added generic types to sizeof

This commit is contained in:
2025-02-08 14:44:13 +01:00
parent 01342f5318
commit 91bafc0867
3 changed files with 8 additions and 6 deletions

View File

@ -16,7 +16,7 @@ func (f *Machine) RegisterNumber(mnemonic asm.Mnemonic, a cpu.Register, b int) {
}
// If the number only needs 32 bits, we can encode the instruction.
if sizeof.Signed(int64(b)) <= 4 {
if sizeof.Signed(b) <= 4 {
f.Assembler.RegisterNumber(mnemonic, a, b)
f.postInstruction()
return