Added generic types to sizeof
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user