Browse Source

- fixed a overflow error

git-svn-id: trunk@749 -
joost 20 years ago
parent
commit
d946895e20
1 changed files with 1 additions and 1 deletions
  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
     If Not (FSize in [4,8,10]) then FSize:=10
     end
     end
   else If FDataType in [ftWord,ftsmallint,ftinteger] Then
   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;
   FFieldNo:=AFieldNo;
 end;
 end;