Use `eq()` function in generic equatable slices.
@@ -17,6 +17,7 @@ pkg std =
impl equatable uint[:]
impl equatable uint32[:]
impl equatable uint64[:]
+
generic sleq : (a : @a[:], b : @a[:] -> bool)
;;
@@ -32,7 +33,7 @@ impl equatable @a[:] =
;;
/* can't use memeq because of padding */
for var i = 0; i < a.len; i++
- if a[i] != b[i]
+ if !eq(a[i], b[i])
-> false
;;
;;
