Explorar o código

* fixed result type conversion for sqrt/sqr

git-svn-id: trunk@1425 -
florian %!s(int64=20) %!d(string=hai) anos
pai
achega
8af13ed6ae
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      compiler/ninl.pas

+ 4 - 4
compiler/ninl.pas

@@ -2438,8 +2438,8 @@ implementation
       begin
         { create the call to the helper }
         { on entry left node contains the parameter }
-        first_sqr_real := ccallnode.createintern('fpc_sqr_real',
-                ccallparanode.create(left,nil));
+        first_sqr_real := ctypeconvnode.create_internal(ccallnode.createintern('fpc_sqr_real',
+                ccallparanode.create(left,nil)),resulttype);
         left := nil;
       end;
 
@@ -2447,8 +2447,8 @@ implementation
       begin
         { create the call to the helper }
         { on entry left node contains the parameter }
-        first_sqrt_real := ccallnode.createintern('fpc_sqrt_real',
-                ccallparanode.create(left,nil));
+        first_sqrt_real := ctypeconvnode.create_internal(ccallnode.createintern('fpc_sqrt_real',
+                ccallparanode.create(left,nil)),resulttype);
         left := nil;
       end;