1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-05 08:55:01 -05:00

Fix build on OS X (Thanks neoascetic)

This commit is contained in:
kwolekr 2015-04-20 01:35:41 -04:00
parent 3d4244cc75
commit a443a13a9d

View File

@ -388,7 +388,8 @@ bool getCurrentExecPath(char *buf, size_t len)
bool getCurrentExecPath(char *buf, size_t len)
{
if (_NSGetExecutablePath(buf, &len) == -1)
uint32_t lenb = (uint32_t)len;
if (_NSGetExecutablePath(buf, &lenb) == -1)
return false;
return true;