aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}