this variable is not guaranteed aligned
No problem for unaligned-ness because we never dereference.
This commit is contained in:
parent
7c0f513e97
commit
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)
|
#define aligned_ptr(value) (uintptr_t *)(value)
|
||||||
#endif
|
#endif
|
||||||
s = aligned_ptr(p);
|
s = aligned_ptr(p);
|
||||||
t = aligned_ptr(e - (SIZEOF_VOIDP-1));
|
t = (uintptr_t *)(e - (SIZEOF_VOIDP-1));
|
||||||
#undef aligned_ptr
|
#undef aligned_ptr
|
||||||
for (;s < t; s++) {
|
for (;s < t; s++) {
|
||||||
if (*s & NONASCII_MASK) {
|
if (*s & NONASCII_MASK) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user