mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
tests/core/crypto: Fix new -vet issues
This commit is contained in:
@@ -58,9 +58,9 @@ test_sqrt_ratio_m1 :: proc(t: ^testing.T) {
|
|||||||
v_bytes, _ := hex.decode(transmute([]byte)(v.v), context.temp_allocator)
|
v_bytes, _ := hex.decode(transmute([]byte)(v.v), context.temp_allocator)
|
||||||
r_bytes, _ := hex.decode(transmute([]byte)(v.r), context.temp_allocator)
|
r_bytes, _ := hex.decode(transmute([]byte)(v.r), context.temp_allocator)
|
||||||
|
|
||||||
u_ := transmute(^[32]byte)(raw_data(u_bytes))
|
u_ := (^[32]byte)(raw_data(u_bytes))
|
||||||
v_ := transmute(^[32]byte)(raw_data(v_bytes))
|
v_ := (^[32]byte)(raw_data(v_bytes))
|
||||||
r_ := transmute(^[32]byte)(raw_data(r_bytes))
|
r_ := (^[32]byte)(raw_data(r_bytes))
|
||||||
|
|
||||||
u, vee, r: field.Tight_Field_Element
|
u, vee, r: field.Tight_Field_Element
|
||||||
field.fe_from_bytes(&u, u_)
|
field.fe_from_bytes(&u, u_)
|
||||||
|
|||||||
Reference in New Issue
Block a user