tcg: Remove the use of void pointer arithmetic within tcgv_i32_temp()

Removes the use of a GNU-specific extension.
This commit is contained in:
Lioncash 2019-01-30 13:04:50 -05:00
parent 6b702a9905
commit 17ff842261
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -961,7 +961,7 @@ static inline TCGTemp *arg_temp(TCGArg a)
static inline TCGTemp *tcgv_i32_temp(TCGContext *s, TCGv_i32 v)
{
uintptr_t o = (uintptr_t)v;
TCGTemp *t = (void *)s + o;
TCGTemp *t = (TCGTemp *)((char *)s + o);
tcg_debug_assert(offsetof(TCGContext, temps[temp_idx(s, t)]) == o);
return t;
}