瀏覽代碼

* Write zero to extra bytes of quadruple when converting to it.

git-svn-id: trunk@8115 -
daniel 18 年之前
父節點
當前提交
f0087dad28
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      rtl/inc/ctypes.pp

+ 2 - 0
rtl/inc/ctypes.pp

@@ -148,6 +148,8 @@ operator := (const v:double):r:clongdouble;inline;
 begin
   Pword(@r[r128_exponent_ofs])^:=qword(v) shr 52;
   Pqword(@r[r128_mantissa_ofs])^:=qword(v) shl 12;
+  Pcardinal(@r[r128_mantissa_ofs+8])^:=0;
+  Pword(@r[r128_mantissa_ofs+12])^:=0;
 end;
 {$endif}