x86_emulate: Fix build with some versions of gcc targeting i386.

Signed-off-by: Keir Fraser <keir@xen.org>
This commit is contained in:
Keir Fraser committed 2010-10-31 19:01:33 +00:00
1 parent 61c7ab294f
commit dedca852d0
1 file changed
+2
+2
View File
@@ -2101,9 +2101,11 @@ x86_emulate(
case 4:
_regs.edx = (uint32_t)(((int32_t)_regs.eax < 0) ? -1 : 0);
break;
#ifdef __x86_64__ /* compile warning with some versions of 32-bit gcc */
case 8:
_regs.edx = ((int64_t)_regs.eax < 0) ? -1 : 0;
break;
#endif
}
break;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.