Browse Source

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

k_john_gough_cp 14 years ago
parent
commit
cd560500ca
1 changed files with 1 additions and 1 deletions
  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);