From 249e43047d7c5e6be685fb5063aaec04d194eea2 Mon Sep 17 00:00:00 2001 From: staticfox Date: Thu, 31 Mar 2016 10:32:57 -0400 Subject: [PATCH] template: Iterate over size_type --- src/Template.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Template.cpp b/src/Template.cpp index bdb369c5..6d7fdec0 100644 --- a/src/Template.cpp +++ b/src/Template.cpp @@ -558,7 +558,7 @@ bool CTemplate::Print(const CString& sFileName, ostream& oOut) { VCString vsArgs; sArgs.QuoteSplit(vsArgs); CString sEnglish, sContext; - int idx = 0; + size_type idx = 0; if (bHaveContext && vsArgs.size() > idx) { sContext = vsArgs[idx]; idx++; @@ -586,7 +586,7 @@ bool CTemplate::Print(const CString& sFileName, ostream& oOut) { sI18N, sContext, sEnglish); } MCString msParams; - for (int i = 0; i + idx < vsArgs.size(); ++i) { + for (size_type i = 0; i + idx < vsArgs.size(); ++i) { msParams[CString(i + 1)] = GetValue(vsArgs[i + idx], false); }