Skip to content

Commit

Permalink
Emitter: Fix s8 problem with displacements
Browse files Browse the repository at this point in the history
  • Loading branch information
refractionpcsx2 committed Apr 11, 2022
1 parent 6438547 commit e5f90f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/emitter/x86types.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ namespace x86Emitter
template <typename T>
static __fi bool is_s8(T imm)
{
return (s8)imm == (s32)imm;
return (s8)imm == (typename std::make_signed<T>::type)imm;
}

template <typename T>
Expand Down

0 comments on commit e5f90f1

Please sign in to comment.