mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-17 21:23:48 +01:00
CFileSystem: Fix signed integer conversion on MinGW
This commit is contained in:
parent
45ace61007
commit
2bb2d3fe01
@ -745,15 +745,10 @@ IFileList* CFileSystem::createFileList()
|
||||
|
||||
r = new CFileList(Path, true, false);
|
||||
|
||||
// TODO: Should be unified once mingw adapts the proper types
|
||||
#if defined(__GNUC__)
|
||||
long hFile; //mingw return type declaration
|
||||
#else
|
||||
// intptr_t is optional but supported by MinGW since 2007 or earlier.
|
||||
intptr_t hFile;
|
||||
#endif
|
||||
|
||||
struct _tfinddata_t c_file;
|
||||
if( (hFile = _tfindfirst( _T("*"), &c_file )) != -1L )
|
||||
if( (hFile = _tfindfirst( _T("*"), &c_file )) != (intptr_t)(-1L) )
|
||||
{
|
||||
do
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user