diff options
Diffstat (limited to 'insert_string_tpl.h')
| -rw-r--r-- | insert_string_tpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/insert_string_tpl.h b/insert_string_tpl.h index ad88275bfc..7d3e46c897 100644 --- a/insert_string_tpl.h +++ b/insert_string_tpl.h @@ -31,7 +31,7 @@ #ifndef HASH_CALC_READ # ifdef UNALIGNED_OK # define HASH_CALC_READ \ - val = *(uint32_t *)(strstart); + memcpy(&val, strstart, sizeof(val)); # else # define HASH_CALC_READ \ val = ((uint32_t)(strstart[0])); \ |
