зеркало из https://github.com/github/ruby.git
this variable is not guaranteed aligned
No problem for unaligned-ness because we never dereference.
This commit is contained in:
Родитель
7c0f513e97
Коммит
f4c68640d6
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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче