summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorUrabe, Shyouhei <shyouhei@ruby-lang.org>2019-04-26 17:01:20 +0900
committerUrabe, Shyouhei <shyouhei@ruby-lang.org>2019-04-29 21:52:44 +0900
commitf4c68640d679c3786c19f3503c76112312636c37 (patch)
tree2c2c3d88ae97371377e485b0f0075cb91a18b155 /string.c
parent7c0f513e97828dd8274695a49bde92c326b208cb (diff)
this variable is not guaranteed aligned
No problem for unaligned-ness because we never dereference.
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index bee9cd4774..e020cedb36 100644
--- a/string.c
+++ b/string.c
@@ -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) {