mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-10-06 08:55:43 +00:00
Fix Win64 when populating input file list
As identified by @b-desconocido, _findfirst has a return type of intptr_t; this was previously being truncated to long. Fix #185
This commit is contained in:
@@ -35,7 +35,7 @@ void scanDirectoryAppend(const string& path, const string& ext, vector<string>&
|
||||
string pathWithExt = path + "/*" + ext;
|
||||
|
||||
_finddata_t dir;
|
||||
long fh = _findfirst(pathWithExt.c_str(), &dir);
|
||||
intptr_t fh = _findfirst(pathWithExt.c_str(), &dir);
|
||||
if (fh == -1L)
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user