mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
this variable is not guaranteed aligned
No problem for unaligned-ness because we never dereference.
This commit is contained in:
parent
7c0f513e97
commit
f4c68640d6
1 changed files with 1 additions and 1 deletions
2
string.c
2
string.c
|
@ -495,7 +495,7 @@ search_nonascii(const char *p, const char *e)
|
|||
#define aligned_ptr(value) (uintptr_t *)(value)
|
||||
#endif
|
||||
s = aligned_ptr(p);
|
||||
t = aligned_ptr(e - (SIZEOF_VOIDP-1));
|
||||
t = (uintptr_t *)(e - (SIZEOF_VOIDP-1));
|
||||
#undef aligned_ptr
|
||||
for (;s < t; s++) {
|
||||
if (*s & NONASCII_MASK) {
|
||||
|
|
Loading…
Add table
Reference in a new issue