Browse Source

* trigger runerror 207 instead of 208 for unknown fpu errors (like on
Linux)

git-svn-id: trunk@2978 -

Jonas Maebe 19 years ago
parent
commit
e053f4272b
2 changed files with 2 additions and 2 deletions
  1. 1 1
      rtl/darwin/i386/sighnd.inc
  2. 1 1
      rtl/darwin/powerpc/sighnd.inc

+ 1 - 1
rtl/darwin/i386/sighnd.inc

@@ -30,7 +30,7 @@ begin
           FPE_FLTRES : Res:=208;  {Device not available}
           FPE_FLTINV : Res:=207;  {Invalid floating point operation}
           Else
-              Res:=208; {coprocessor error}
+            Res:=207; {coprocessor error}
         end;
         { the following is true on ppc, hopefully not on x86 as well }
         { FPU exceptions are completely disabled by the kernel if one occurred, it  }

+ 1 - 1
rtl/darwin/powerpc/sighnd.inc

@@ -30,7 +30,7 @@ begin
           FPE_FLTRES : Res:=208;  {Device not available}
           FPE_FLTINV : Res:=207;  {Invalid floating point operation}
           Else
-              Res:=208; {coprocessor error}
+            Res:=207; {coprocessor error}
         end;
         { FPU exceptions are completely disabled by the kernel if one occurred, it  }
         { seems this is necessary to be able to return to user mode. They can be    }