summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-16 03:09:53 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-16 03:09:53 +0000
commitdc1e6f17baafa4da77202e48803bd6e507e83b7d (patch)
tree713f0f3e473f0f15c2b0d24c02729f2bfb27e0cc /string.c
parent840d0dc180d297e5cdc53159c51149073e35fd6d (diff)
sizeof(uintptr_t) != sizeof(uintptr_t *)
Reported by mame. Thanks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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 9902b0feb3..82fa603ada 100644
--- a/string.c
+++ b/string.c
@@ -483,7 +483,7 @@ search_nonascii(const char *p, const char *e)
#endif
#ifdef HAVE_BUILTIN___BUILTIN_ASSUME_ALIGNED
#define aligned_ptr(value) \
- __builtin_assume_aligned((value), sizeof(uintptr_t *))
+ __builtin_assume_aligned((value), sizeof(uintptr_t))
#else
#define aligned_ptr(value) (uintptr_t *)(value)
#endif