aboutsummaryrefslogtreecommitdiff
path: root/src/std
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-03-08 00:51:48 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commit18fb99add7f0d4b710debcbf5c154f9c1d841845 (patch)
treecdd380de8785b82a6556daf1da74081d307b171a /src/std
parent784cfbe5d88042756dac21fec4b6dac5f1db414e (diff)
asdf
Diffstat (limited to 'src/std')
-rw-r--r--src/std/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/std/hash.c b/src/std/hash.c
index 8bd08d9..82f7119 100644
--- a/src/std/hash.c
+++ b/src/std/hash.c
@@ -5,7 +5,7 @@ usize amal_hash_string(const u8 *data, usize size) {
result = 0xdec05eba;
while(size) {
- result = ((result << 5) + result) ^ *data;
+ result = ((result << 5) + result) + *data;
++data;
--size;
}