You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Byte offset to array index translation must use array type
When dereferencing a void* pointer, the dereferenced type would always be
considered compatible with the underlying object type. Nevertheless they are not
actually the same. If the object was an array and the byte offset non-zero, the
use of void* would yield the wrong index. The correct way to compute the index
is using the actual (array) object type.
Fixes: #1857
0 commit comments