Explorar o código

Fixed set value conversion

git-svn-id: https://svn.inf.ethz.ch/svn/lecturers/a2/trunk@7717 8c9fc860-2736-0410-a75d-ab315db34111
eth.negelef %!s(int64=7) %!d(string=hai) anos
pai
achega
58dedab4af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      source/FoxGlobal.Mod

+ 1 - 1
source/FoxGlobal.Mod

@@ -1456,7 +1456,7 @@ TYPE
 
 	PROCEDURE ConvertSet*(this: SET; bits: LONGINT): SET;
 	BEGIN
-		RETURN this * {0 .. MIN (bits, MAX (SET)) - 1};
+		RETURN this * {0 .. MIN (bits - 1, MAX (SET))};
 	END ConvertSet;
 
 	PROCEDURE IsUnsignedInteger*(this: HUGEINT; sizeInBits: LONGINT): BOOLEAN;