ODIN_ENDIAN changed to an enum constant; ODIN_ENUM_STRING is the new string version of the old constant

This commit is contained in:
gingerBill committed 2022-01-15 17:53:18 +00:00
1 parent 3f59c45740
commit f0529535e0
14 files changed
+64 -45

No files matched your search

+1 -1
View File
@@ -1332,7 +1332,7 @@ update :: proc(ctx: ^Haval_Context, data: []byte) {
}
ctx.count[1] += str_len >> 29
when ODIN_ENDIAN == "little" {
when ODIN_ENDIAN == .Little {
if rmd_len + str_len >= 128 {
copy(util.slice_to_bytes(ctx.block[:])[rmd_len:], data[:fill_len])
block(ctx, ctx.rounds)