2
0
Эх сурвалжийг харах

* fixed float_error() to call HandleError instead of RunError so that they are properly converted to exceptions

git-svn-id: trunk@6032 -
tom_at_work 18 жил өмнө
parent
commit
67e6d8d2da

+ 5 - 5
rtl/inc/genmath.inc

@@ -102,19 +102,19 @@ procedure float_raise(i: shortint);
 Begin
 Begin
   softfloat_exception_flags := softfloat_exception_flags or i;
   softfloat_exception_flags := softfloat_exception_flags or i;
   if ((softfloat_exception_flags and not(softfloat_exception_mask)) and float_flag_invalid) <> 0 then
   if ((softfloat_exception_flags and not(softfloat_exception_mask)) and float_flag_invalid) <> 0 then
-     RunError(207)
+     HandleError(207)
   else
   else
   if ((softfloat_exception_flags and not(softfloat_exception_mask)) and float_flag_divbyzero) <> 0 then
   if ((softfloat_exception_flags and not(softfloat_exception_mask)) and float_flag_divbyzero) <> 0 then
-     RunError(200)
+     HandleError(200)
   else
   else
   if ((softfloat_exception_flags and not(softfloat_exception_mask)) and float_flag_overflow) <> 0 then
   if ((softfloat_exception_flags and not(softfloat_exception_mask)) and float_flag_overflow) <> 0 then
-     RunError(205)
+     HandleError(205)
   else
   else
   if ((softfloat_exception_flags and not(softfloat_exception_mask)) and float_flag_underflow) <> 0 then
   if ((softfloat_exception_flags and not(softfloat_exception_mask)) and float_flag_underflow) <> 0 then
-     RunError(206)
+     HandleError(206)
   else
   else
   if ((softfloat_exception_flags and not(softfloat_exception_mask)) and float_flag_inexact) <> 0 then
   if ((softfloat_exception_flags and not(softfloat_exception_mask)) and float_flag_inexact) <> 0 then
-     RunError(207);
+     HandleError(207);
 end;
 end;