From 6f773cf4079a6a4abce5f80b9f0f817934025ff1 Mon Sep 17 00:00:00 2001 From: Kevin Lange Date: Tue, 31 Jan 2012 20:12:19 -0600 Subject: [PATCH] Fix a cast warning --- kernel/v8086/rme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/v8086/rme.c b/kernel/v8086/rme.c index b9205486..cf25fd12 100644 --- a/kernel/v8086/rme.c +++ b/kernel/v8086/rme.c @@ -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)