소스 검색

- fixed a overflow error

git-svn-id: trunk@749 -
joost 20 년 전
부모
커밋
d946895e20
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;