From: kwolekr Date: Mon, 20 Apr 2015 05:35:41 +0000 (-0400) Subject: Fix build on OS X (Thanks neoascetic) X-Git-Tag: 0.4.13~351 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a443a13a9d77d3826947a55dd3bdc684d7bb7ed8;p=oweals%2Fminetest.git Fix build on OS X (Thanks neoascetic) --- 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;