Fix a cast warning

This commit is contained in:
Kevin Lange 2012-01-31 20:12:19 -06:00
parent 89d9265c73
commit 6f773cf407

View File

@ -2019,7 +2019,7 @@ static inline int RME_Int_Write32(tRME_State *State, uint16_t Seg, uint16_t Ofs,
int v = (to) - (from) + ((State->Flags&FLAG_CF)?1:0);\
State->Flags &= ~(FLAG_PF|FLAG_ZF|FLAG_SF|FLAG_OF|FLAG_CF);\
SET_COMM_FLAGS(State,(to),(width));\
State->Flags |= ((to)<(from) || (from)==((1<<((width)-1)-1)|(1<<((width)-1)))) ? FLAG_CF : 0;\
State->Flags |= ((to)<(from) || (from)==(uint32_t)((1<<((width)-1)-1)|(1<<((width)-1)))) ? FLAG_CF : 0;\
State->Flags |= (((((to) ^ (from)) & ((to) ^ (v))) & (1<<((width)-1))) != 0) ? FLAG_OF : 0;\
(to) = v;\
}while(0)