forked from Mirrorlandia_minetest/irrlicht
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);
|
r = new CFileList(Path, true, false);
|
||||||
|
|
||||||
// TODO: Should be unified once mingw adapts the proper types
|
// intptr_t is optional but supported by MinGW since 2007 or earlier.
|
||||||
#if defined(__GNUC__)
|
|
||||||
long hFile; //mingw return type declaration
|
|
||||||
#else
|
|
||||||
intptr_t hFile;
|
intptr_t hFile;
|
||||||
#endif
|
|
||||||
|
|
||||||
struct _tfinddata_t c_file;
|
struct _tfinddata_t c_file;
|
||||||
if( (hFile = _tfindfirst( _T("*"), &c_file )) != -1L )
|
if( (hFile = _tfindfirst( _T("*"), &c_file )) != (intptr_t)(-1L) )
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user