summaryrefslogtreecommitdiff
path: root/insert_string_tpl.h
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2022-06-29 08:57:11 -0700
committerHans Kristian Rosbach <hk-github@circlestorm.org>2022-08-17 14:41:18 +0200
commite22195e5bcb10851f96e0b56e396696b152e81af (patch)
tree8f0f55a0e9f0eef84ba904c78101c57d0773dbbf /insert_string_tpl.h
parentb18c815056e9b20175d44732bd7416f1fe6a931e (diff)
downloadProject-Tick-e22195e5bcb10851f96e0b56e396696b152e81af.tar.gz
Project-Tick-e22195e5bcb10851f96e0b56e396696b152e81af.zip
Don't use unaligned access for memcpy instructions due to GCC 11 assuming it is aligned in certain instances.
Diffstat (limited to 'insert_string_tpl.h')
-rw-r--r--insert_string_tpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/insert_string_tpl.h b/insert_string_tpl.h
index 643a5e0e31..4acd67fd62 100644
--- a/insert_string_tpl.h
+++ b/insert_string_tpl.h
@@ -31,7 +31,7 @@
#ifndef HASH_CALC_READ
# if BYTE_ORDER == LITTLE_ENDIAN
# define HASH_CALC_READ \
- zmemcpy_4(&val, strstart);
+ memcpy(&val, strstart, sizeof(val));
# else
# define HASH_CALC_READ \
val = ((uint32_t)(strstart[0])); \