Fix build on OS X (Thanks neoascetic)
authorkwolekr <kwolekr@minetest.net>
Mon, 20 Apr 2015 05:35:41 +0000 (01:35 -0400)
committerkwolekr <kwolekr@minetest.net>
Mon, 20 Apr 2015 05:35:41 +0000 (01:35 -0400)
src/porting.cpp

index 1834fb7c816aeb7d33964a12cfedc5fe2400600f..eb7fea94c24678f32acbbfc6deb346f2e11ba6ab 100644 (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;