summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/Util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Slice/Util.cpp')
-rw-r--r--cpp/src/Slice/Util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Slice/Util.cpp b/cpp/src/Slice/Util.cpp
index c8d98fc400f..8e0fe4c8bdc 100644
--- a/cpp/src/Slice/Util.cpp
+++ b/cpp/src/Slice/Util.cpp
@@ -115,7 +115,7 @@ Slice::fullPath(const string& path)
}
char buf[PATH_MAX + 1];
- int len = readlink(subpath.c_str(), buf, sizeof(buf));
+ int len = static_cast<int>(readlink(subpath.c_str(), buf, sizeof(buf)));
if(len > 0)
{
buf[len] = '\0';