Skip to content

Commit

Permalink
Fix build on OS X (Thanks neoascetic)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolekr committed Apr 20, 2015
1 parent 3d4244c commit a443a13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/porting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a443a13

Please sign in to comment.