diff --git a/Directory.cxx b/Directory.cxx
index 68b81c4715718f51bddfd2ff3d769f36aa49ed99..add296b8b58c0e0095f1477d1d71a130963639ad 100644
--- a/Directory.cxx
+++ b/Directory.cxx
@@ -96,7 +96,7 @@ bool Directory::Load(const char* name)
   struct _finddata_t data;      // data of current file
   
   // Now put them into the file array
-  size_t srchHandle = _findfirst(buf, &data);
+  intptr_t srchHandle = _findfirst(buf, &data);
   delete [] buf;
   
   if ( srchHandle == -1 )