OSDN Git Service

x86: math-emu: Hide clang warnings for 16-bit overflow
[android-x86/kernel.git] / arch / x86 / math-emu / reg_constant.c
index 0054835..382093c 100644 (file)
@@ -17,7 +17,7 @@
 #include "control_w.h"
 
 #define MAKE_REG(s, e, l, h) { l, h, \
-               ((EXTENDED_Ebias+(e)) | ((SIGN_##s != 0)*0x8000)) }
+               (u16)((EXTENDED_Ebias+(e)) | ((SIGN_##s != 0)*0x8000)) }
 
 FPU_REG const CONST_1 = MAKE_REG(POS, 0, 0x00000000, 0x80000000);
 #if 0