Browse Source

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

sg 21 years ago
parent
commit
5dbbf8adac
1 changed files with 1 additions and 1 deletions
  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;
 
 begin
-  Case FStype of
+  Case LongWord(FStype) of
     $ADFF : Result:='affs';
     $137D : Result:='ext';
     $EF51,$EF53 : Result:='ext2';