ソースを参照

* 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';