aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2022-01-16 15:07:37 +0100
committerDaniel Gavin <danielgavin5@hotmail.com>2022-01-16 15:07:37 +0100
commit273de152aee21ed4855bf4b6fdbd08d494995863 (patch)
tree61bf0fcf75119b94a45d2bea8b4ce6a65dc024b4 /src/common
parentf3bfad6da8932b2d5c6a9cba430701b0a67e422c (diff)
work on resolve entire file.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/sha1.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/sha1.odin b/src/common/sha1.odin
index d4621dd..8e90da6 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,7 +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];