From dc1e6f17baafa4da77202e48803bd6e507e83b7d Mon Sep 17 00:00:00 2001 From: shyouhei Date: Tue, 16 Jan 2018 03:09:53 +0000 Subject: 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 --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string.c') 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 -- cgit v1.2.3