From 7babde31034c9b9e324b54678bf8501eecccd95e Mon Sep 17 00:00:00 2001 From: Ben Hymers Date: Sat, 20 Feb 2016 15:46:22 +0000 Subject: [PATCH] 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 --- RecastDemo/Source/Filelist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RecastDemo/Source/Filelist.cpp b/RecastDemo/Source/Filelist.cpp index 1bd79d7..8a8b7c9 100644 --- a/RecastDemo/Source/Filelist.cpp +++ b/RecastDemo/Source/Filelist.cpp @@ -35,7 +35,7 @@ void scanDirectoryAppend(const string& path, const string& ext, vector& 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;