Explorar o código

- fixed a overflow error

git-svn-id: trunk@749 -
joost %!s(int64=20) %!d(string=hai) anos
pai
achega
d946895e20
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      fcl/db/fields.inc

+ 1 - 1
fcl/db/fields.inc

@@ -48,7 +48,7 @@ begin
     If Not (FSize in [4,8,10]) then FSize:=10
     end
   else If FDataType in [ftWord,ftsmallint,ftinteger] Then
-    If Not (FSize in [1,2,4]) then FSize:=4;
+    If Not (byte(FSize) in [1,2,4]) then FSize:=4;
 
   FFieldNo:=AFieldNo;
 end;