OSDN Git Service

[General] Merge Upstream 2018-12-27.
[csp-qt/common_source_project-fm7.git] / source / src / vm / libcpu_newdev / libcpu_i386 / i386op32.cpp
index 2b140ab..bfc9acc 100644 (file)
@@ -325,7 +325,7 @@ void I386_OPS_BASE::I386OP(bsr_r32_rm32)()      // Opcode 0x0f bd
        } else {
                cpustate->ZF = 0;
                dst = temp = 31;
-               while( (src & (1 << temp)) == 0 ) {
+               while( (src & (1U << temp)) == 0 ) {
                        temp--;
                        dst = temp;
                        CYCLES(CYCLES_BSR);