소스 검색

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);