diff --git a/gui/gui/src/TGFileBrowser.cxx b/gui/gui/src/TGFileBrowser.cxx
index f204d042443c3e6d05b0b8c8ce45bb90dd780ec1..5a4543cdf99c41e038e6f91225aa1d41b34ce638 100644
--- a/gui/gui/src/TGFileBrowser.cxx
+++ b/gui/gui/src/TGFileBrowser.cxx
@@ -1649,7 +1649,8 @@ void TGFileBrowser::GetObjPicture(const TGPicture **pic, TObject *obj)
 void TGFileBrowser::GotoDir(const char *path)
 {
    TGListTreeItem *item, *itm;
-   Long_t id, bsize, blocks, bfree;
+   ULong_t id;
+   Long_t bsize, blocks, bfree;
    Bool_t expand = kTRUE;
    TString sPath(gSystem->UnixPathName(path));
    item = fRootDir;
@@ -1675,7 +1676,7 @@ void TGFileBrowser::GotoDir(const char *path)
       expand = kFALSE;
    // check also AFS_SUPER_MAGIC, NFS_SUPER_MAGIC, FUSE_SUPER_MAGIC,
    // CIFS_MAGIC_NUMBER and SMB_SUPER_MAGIC
-   if (!gSystem->GetFsInfo(path, &id, &bsize, &blocks, &bfree))
+   if (!gSystem->GetFsInfo(path, (Long_t *)&id, &bsize, &blocks, &bfree))
       if (id == 0x5346414f || id == 0x6969 || id == 0x65735546 || id == 0xff534d42 || id == 0x517b)
          expand = kFALSE;
    if (first.Length() == 2 && first.EndsWith(":")) {