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:
parent
840d0dc180
commit
dc1e6f17ba
1 changed files with 1 additions and 1 deletions
2
string.c
2
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
|
||||
|
|
Loading…
Reference in a new issue