From 36d1c4540af3ef058d68092e41af05aa4a8c5eca Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 8 Mar 2018 18:48:26 +0100 Subject: all: fix gometalinter warnings Fix typos, non-canonical code, remove dead code, etc. --- pkg/ifuzz/encode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/ifuzz/encode.go') diff --git a/pkg/ifuzz/encode.go b/pkg/ifuzz/encode.go index 799def63a..0b3732aa7 100644 --- a/pkg/ifuzz/encode.go +++ b/pkg/ifuzz/encode.go @@ -76,7 +76,7 @@ func (insn *Insn) Encode(cfg *Config, r *rand.Rand) []byte { rex = byte(0x40 | r.Intn(16)) if insn.Rexw == 1 { rex |= 1 << 3 - } else if insn.Rexw == 1 { + } else { rex &^= 1 << 3 } rexR = rex&0x4 != 0 -- cgit mrf-deployment