aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2022-01-16 15:08:20 +0100
committerDaniel Gavin <danielgavin5@hotmail.com>2022-01-16 15:08:20 +0100
commit2bb0365583b0632c80dd1d8f9a6adecec2208129 (patch)
tree21759debdaddb68d06bf4303d13c2c997f2a3bf3 /src
parentcda7b552ac83c12a4f5b2e554bf714a0d66602cf (diff)
Support the new ODIN_ENDIAN format
Diffstat (limited to 'src')
-rw-r--r--src/common/sha1.odin5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/common/sha1.odin b/src/common/sha1.odin
index d4621dd..0ca591d 100644
--- a/src/common/sha1.odin
+++ b/src/common/sha1.odin
@@ -179,7 +179,7 @@ sha1_hash_block :: proc (state_context: ^Sha1context) {
sha1_add_uncounted :: proc (state_context: ^Sha1context, data: byte) {
- when ODIN_ENDIAN == "big" {
+ when ODIN_ENDIAN == .Big {
state_context.buf.c[state_context.buf_offset] = data;
} else
@@ -262,8 +262,7 @@ sha1_final :: proc (state_context: ^Sha1context, result: ^[5]u32) {
sha1_pad(state_context);
- when ODIN_ENDIAN == "big" {
-
+ when ODIN_ENDIAN == .Big {
for i := 0; i < 5; i += 1 {
result[i] = state_context.state[i];
}