diff options
author | Urabe, Shyouhei <shyouhei@ruby-lang.org> | 2019-04-26 17:01:20 +0900 |
---|---|---|
committer | Urabe, Shyouhei <shyouhei@ruby-lang.org> | 2019-04-29 21:52:44 +0900 |
commit | f4c68640d679c3786c19f3503c76112312636c37 (patch) | |
tree | 2c2c3d88ae97371377e485b0f0075cb91a18b155 | |
parent | 7c0f513e97828dd8274695a49bde92c326b208cb (diff) | |
download | ruby-f4c68640d679c3786c19f3503c76112312636c37.tar.gz |
this variable is not guaranteed aligned
No problem for unaligned-ness because we never dereference.
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -495,7 +495,7 @@ search_nonascii(const char *p, const char *e) #define aligned_ptr(value) (uintptr_t *)(value) #endif s = aligned_ptr(p); - t = aligned_ptr(e - (SIZEOF_VOIDP-1)); + t = (uintptr_t *)(e - (SIZEOF_VOIDP-1)); #undef aligned_ptr for (;s < t; s++) { if (*s & NONASCII_MASK) { |