1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
shyouhei 2018-01-16 03:09:53 +00:00
parent 840d0dc180
commit dc1e6f17ba

View file

@ -483,7 +483,7 @@ search_nonascii(const char *p, const char *e)
#endif #endif
#ifdef HAVE_BUILTIN___BUILTIN_ASSUME_ALIGNED #ifdef HAVE_BUILTIN___BUILTIN_ASSUME_ALIGNED
#define aligned_ptr(value) \ #define aligned_ptr(value) \
__builtin_assume_aligned((value), sizeof(uintptr_t *)) __builtin_assume_aligned((value), sizeof(uintptr_t))
#else #else
#define aligned_ptr(value) (uintptr_t *)(value) #define aligned_ptr(value) (uintptr_t *)(value)
#endif #endif