Skip to content

Commit a443a13

Browse files
committedApr 20, 2015
Fix build on OS X (Thanks neoascetic)
1 parent 3d4244c commit a443a13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/porting.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,8 @@ bool getCurrentExecPath(char *buf, size_t len)
388388

389389
bool getCurrentExecPath(char *buf, size_t len)
390390
{
391-
if (_NSGetExecutablePath(buf, &len) == -1)
391+
uint32_t lenb = (uint32_t)len;
392+
if (_NSGetExecutablePath(buf, &lenb) == -1)
392393
return false;
393394

394395
return true;

0 commit comments

Comments
 (0)
Please sign in to comment.