From 217b3d2bce272255ebc80606aeb23afac221d18e Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 30 Jul 2012 14:12:49 +0200 Subject: [PATCH] fix compilation on OSX --- src/commands.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands.cc b/src/commands.cc index 6c04fbc0..0fcffabc 100644 --- a/src/commands.cc +++ b/src/commands.cc @@ -581,7 +581,7 @@ void exec_commands_in_runtime_file(const CommandParameters& params, assert(res != -1); buffer[res] = '\0'; #elif defined(__APPLE__) - uint32_t bufsize = 2048 - filename.length(); + uint32_t bufsize = 2048 - (int)filename.length(); _NSGetExecutablePath(buffer, &bufsize); char* canonical_path = realpath(buffer, NULL); strncpy(buffer, canonical_path, 2048 - (int)filename.length());