From a2e7a91964b2a86fd5d58beefea14734987e5cdf Mon Sep 17 00:00:00 2001 From: JUN Date: Mon, 20 Apr 2020 20:42:16 +0800 Subject: [PATCH] Modify data type in CommonUtil.cpp (#1996) Signed-off-by: JUN --- core/src/utils/CommonUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/utils/CommonUtil.cpp b/core/src/utils/CommonUtil.cpp index 92882cb480..361a06b029 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 "";