From c2f540b2318fa0bd81cbcf68f1dad0267f3b9404 Mon Sep 17 00:00:00 2001 From: Kristof Szabados <Kristof.Szabados@ericsson.com> Date: Sat, 11 Aug 2018 15:54:35 +0200 Subject: [PATCH] size_t is more precise. Signed-off-by: Kristof Szabados <Kristof.Szabados@ericsson.com> --- compiler2/ProjectGenHelper.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler2/ProjectGenHelper.cc b/compiler2/ProjectGenHelper.cc index 0d89e889e..06cc453f5 100644 --- a/compiler2/ProjectGenHelper.cc +++ b/compiler2/ProjectGenHelper.cc @@ -607,7 +607,7 @@ bool ProjectGenHelper::isCPPSourceFile(const char* fileName) const if (std::string::npos == pos) return false; const std::string EXT_CC("cc"); const std::string EXT_CPP("cpp"); - int length = 0; + size_t length = 0; if (std::string::npos != fnStr.find (EXT_CC, pos + 1)) length = EXT_CC.size(); else if (std::string::npos != fnStr.find (EXT_CPP, pos + 1)) @@ -627,7 +627,7 @@ bool ProjectGenHelper::isCPPHeaderFile(const char* fileName) const const std::string EXT_HPP("hpp"); const std::string EXT_HH("hh"); const std::string EXT_H("h"); - int length = 0; + size_t length = 0; if (std::string::npos != fnStr.find (EXT_HH, pos + 1)) length = EXT_HH.size(); else if (std::string::npos != fnStr.find (EXT_HPP, pos + 1)) @@ -647,7 +647,7 @@ bool ProjectGenHelper::isTtcnPPFile(const char* fileName) const size_t pos = fnStr.find_last_of('.'); if (std::string::npos == pos) return false; const std::string EXT_TTCNPP("ttcnpp"); - int length = 0; + size_t length = 0; if (std::string::npos != fnStr.find (EXT_TTCNPP, pos + 1)) length = EXT_TTCNPP.size(); -- GitLab