projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d4244c
)
Fix build on OS X (Thanks neoascetic)
author
kwolekr
<kwolekr@minetest.net>
Mon, 20 Apr 2015 05:35:41 +0000
(
01:35
-0400)
committer
kwolekr
<kwolekr@minetest.net>
Mon, 20 Apr 2015 05:35:41 +0000
(
01:35
-0400)
src/porting.cpp
patch
|
blob
|
history
diff --git
a/src/porting.cpp
b/src/porting.cpp
index 1834fb7c816aeb7d33964a12cfedc5fe2400600f..eb7fea94c24678f32acbbfc6deb346f2e11ba6ab 100644
(file)
--- 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;