소스 검색

* Added typecast within FSTypeToString to avoid problems when compiling
with range checks enabled

sg 21 년 전
부모
커밋
5dbbf8adac
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/extra/unixutil/unixutils.pp

+ 1 - 1
packages/extra/unixutil/unixutils.pp

@@ -562,7 +562,7 @@ end;
 Function  FSTypeToString(FSType : Integer) : String;
 Function  FSTypeToString(FSType : Integer) : String;
 
 
 begin
 begin
-  Case FStype of
+  Case LongWord(FStype) of
     $ADFF : Result:='affs';
     $ADFF : Result:='affs';
     $137D : Result:='ext';
     $137D : Result:='ext';
     $EF51,$EF53 : Result:='ext2';
     $EF51,$EF53 : Result:='ext2';