mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 08:01:11 +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
|
@ -961,7 +961,7 @@ static inline TCGTemp *arg_temp(TCGArg a)
|
||||||
static inline TCGTemp *tcgv_i32_temp(TCGContext *s, TCGv_i32 v)
|
static inline TCGTemp *tcgv_i32_temp(TCGContext *s, TCGv_i32 v)
|
||||||
{
|
{
|
||||||
uintptr_t o = (uintptr_t)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);
|
tcg_debug_assert(offsetof(TCGContext, temps[temp_idx(s, t)]) == o);
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue