Skip to contentSkip to conversation

boolean logic error in fpu emulation.

PATCH New [email protected] 1 participant 1 message Aug 11, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 boolean logic error in fpu emulation.

arch/i386/math-emu/fpu_trig.c +1 -1
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/arch/i386/math-emu/fpu_trig.c linux-2.5/arch/i386/math-emu/fpu_trig.c
@@ -1058,7 +1058,7 @@ static void do_fprem(FPU_REG *st0_ptr, u
 	return;
       goto fprem_valid;
     }
-  else if ( (st0_tag == TAG_Empty) | (st1_tag == TAG_Empty) )
+  else if ( (st0_tag == TAG_Empty) || (st1_tag == TAG_Empty) )
     {
       FPU_stack_underflow();
       return;