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:
Lioncash 2019-01-30 13:01:59 -05:00
parent d5298c5370
commit 6b702a9905
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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)
{
(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)