diff --git a/core/src/utils/CommonUtil.cpp b/core/src/utils/CommonUtil.cpp index 92882cb4801b3549803674ae5b49087d9cd1512f..361a06b029328b5b7b18f92c83eab5ab719c8fa0 100644 --- a/core/src/utils/CommonUtil.cpp +++ b/core/src/utils/CommonUtil.cpp @@ -182,7 +182,7 @@ std::string CommonUtil::GetExePath() { const size_t buf_len = 1024; char buf[buf_len]; - size_t cnt = readlink("/proc/self/exe", buf, buf_len); + ssize_t cnt = readlink("/proc/self/exe", buf, buf_len); fiu_do_on("CommonUtil.GetExePath.readlink_fail", cnt = -1); if (cnt < 0 || cnt >= buf_len) { return "";