Explorar o código

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

k_john_gough_cp %!s(int64=14) %!d(string=hai) anos
pai
achega
cd560500ca
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);