]> git.eshelyaron.com Git - emacs.git/commit
* src/fns.c (hash_string): Fix bug#46111
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 28 Jan 2021 17:27:09 +0000 (12:27 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 28 Jan 2021 17:27:27 +0000 (12:27 -0500)
commit592a230832257e915aa3ed798a1f0210df639031
tree35f71d276e25d654b200cee6d4427da1476177f5
parentb04f1c0cec5bc722fd5823861044f212206c3d3b
* src/fns.c (hash_string): Fix bug#46111

Use `memcpy` instead of an unaligned memory access.  On x86 at least,
GCC turns this `memcpy` into a single `mov`, so it's about as fast.
src/fns.c