summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/gf.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gf.go b/lib/gf.go
index 52715ce..9de143b 100644
--- a/lib/gf.go
+++ b/lib/gf.go
@@ -11,11 +11,11 @@ func GFMultiply(a, b byte) byte {
return 0x00
}
- ans := logXPlusOneOf[a] + logXPlusOneOf[b]
+ ans := uint16(logXPlusOneOf[a]) + uint16(logXPlusOneOf[b])
if ans >= 255 {
ans -= 255
}
- return xPlusOneToThe[ans]
+ return xPlusOneToThe[byte(ans)]
}
var xPlusOneToThe map[byte]byte = map[byte]byte{