mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-04 04:28:22 +00:00
tcg: Convert void* casts to char* in temp_tcgv_i32()
Gets rid of the use of a GNU extension that allows arithmetic on void pointers. This is equivalent to doing arithmetic on char/unsigned char pointers.
This commit is contained in:
parent
d5298c5370
commit
6b702a9905
|
@ -1004,7 +1004,7 @@ static inline TCGArg tcgv_vec_arg(TCGContext *s, TCGv_vec v)
|
||||||
static inline TCGv_i32 temp_tcgv_i32(TCGContext *s, TCGTemp *t)
|
static inline TCGv_i32 temp_tcgv_i32(TCGContext *s, TCGTemp *t)
|
||||||
{
|
{
|
||||||
(void)temp_idx(s, t); /* trigger embedded assert */
|
(void)temp_idx(s, t); /* trigger embedded assert */
|
||||||
return (TCGv_i32)((void *)t - (void *)s);
|
return (TCGv_i32)((char *)t - (char *)s);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline TCGv_i64 temp_tcgv_i64(TCGContext *s, TCGTemp *t)
|
static inline TCGv_i64 temp_tcgv_i64(TCGContext *s, TCGTemp *t)
|
||||||
|
|
Loading…
Reference in a new issue