ruby-changes:49747
From: shyouhei <ko1@a...>
Date: Tue, 16 Jan 2018 12:09:58 +0900 (JST)
Subject: [ruby-changes:49747] shyouhei:r61865 (trunk): sizeof(uintptr_t) != sizeof(uintptr_t *)
shyouhei 2018-01-16 12:09:53 +0900 (Tue, 16 Jan 2018) New Revision: 61865 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61865 Log: sizeof(uintptr_t) != sizeof(uintptr_t *) Reported by mame. Thanks. Modified files: trunk/string.c Index: string.c =================================================================== --- string.c (revision 61864) +++ string.c (revision 61865) @@ -483,7 +483,7 @@ search_nonascii(const char *p, const cha https://github.com/ruby/ruby/blob/trunk/string.c#L483 #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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/