summaryrefslogtreecommitdiff
path: root/src/porting.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-04-20 01:35:41 -0400
committerkwolekr <kwolekr@minetest.net>2015-04-20 01:35:41 -0400
commita443a13a9d77d3826947a55dd3bdc684d7bb7ed8 (patch)
tree184b15a11d2debf3dd38ef37e2af94c6541879e9 /src/porting.cpp
parent3d4244cc75b7e75565476032851fbd30d5cd9306 (diff)
downloadminetest-a443a13a9d77d3826947a55dd3bdc684d7bb7ed8.tar.gz
minetest-a443a13a9d77d3826947a55dd3bdc684d7bb7ed8.tar.bz2
minetest-a443a13a9d77d3826947a55dd3bdc684d7bb7ed8.zip
Fix build on OS X (Thanks neoascetic)
Diffstat (limited to 'src/porting.cpp')
-rw-r--r--src/porting.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/porting.cpp b/src/porting.cpp
index 1834fb7c8..eb7fea94c 100644
--- a/src/porting.cpp
+++ b/src/porting.cpp
@@ -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;