瀏覽代碼

* Call HandleError in fpc_exp_real for overflow and underflow. It fixes webtbs/tw3157.pp for targets where generic fpc_exp_real is used.

git-svn-id: trunk@5948 -
yury 18 年之前
父節點
當前提交
737634d781
共有 1 個文件被更改,包括 2 次插入8 次删除
  1. 2 8
      rtl/inc/genmath.inc

+ 2 - 8
rtl/inc/genmath.inc

@@ -727,15 +727,9 @@ type
                   end;
               end;
             if d > o_threshold then
-              begin
-                result:=huge*huge; { overflow }
-                exit;
-              end;
+              HandleError(205); { overflow }
             if d < u_threshold then
-              begin
-                result:=twom1000*twom1000; { underflow }
-                exit;
-              end;
+              HandleError(206); { underflow }
           end;
 
         { argument reduction }