소스 검색

* 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 }