浏览代码

Correct signature of RTS::intBitsToShortReal in RTS.cs to agree with RTS.cp dummy module.

k_john_gough_cp 14 年之前
父节点
当前提交
cd560500ca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libs/csharp/RTS.cs

+ 1 - 1
libs/csharp/RTS.cs

@@ -614,7 +614,7 @@ public class RTS
 //  PROCEDURE intBitsToShortReal(l : INTEGER) : SHORTREAL;
 //  (** Convert an int into an ieee float with same bit pattern *)
 //
-  	public static double intBitsToShortReal(int l)
+  	public static float intBitsToShortReal(int l)
   	{
 	    byte[] tmp = System.BitConverter.GetBytes(l);
   	    return System.BitConverter.ToSingle(tmp,0);