mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 13:58:16 +00:00
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:
parent
6b702a9905
commit
17ff842261
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue