Skip to content

Commit

Permalink
fix: zero extend uint16
Browse files Browse the repository at this point in the history
  • Loading branch information
danielvladco committed Jan 23, 2025
1 parent 9eeca0e commit f506169
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/polkavm/interpreter/mutator.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ func (m *Mutator) SignExtend16(d polkavm.Reg, s polkavm.Reg) {
m.set64(d, uint64(int64(int16(uint16(m.get64(s))))))
}
func (m *Mutator) ZeroExtend16(d polkavm.Reg, s polkavm.Reg) {
m.set64(d, uint64(int16(m.get64(s))))
m.set64(d, uint64(uint16(m.get64(s))))
}
func (m *Mutator) ReverseBytes(d polkavm.Reg, s polkavm.Reg) {
m.set64(d, bits.ReverseBytes64(m.get64(s)))
Expand Down

0 comments on commit f506169

Please sign in to comment.