From 21945be4c4ef822b7dc5f6ded80027bd5437ce9d Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 24 Mar 2013 12:30:26 +0100 Subject: Fixed warnings and 64-bit issues. --- tests/testUtils.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/testUtils.cpp') diff --git a/tests/testUtils.cpp b/tests/testUtils.cpp index d008ed94..cb6df133 100644 --- a/tests/testUtils.cpp +++ b/tests/testUtils.cpp @@ -276,15 +276,15 @@ const vmime::string toHex(const vmime::string str) vmime::string res = "\n"; - for (unsigned int i = 0 ; i < str.length() ; i += 16) + for (size_t i = 0 ; i < str.length() ; i += 16) { - unsigned int r = std::min + size_t r = std::min (static_cast (16), str.length() - i); vmime::string hex; vmime::string chr; - for (unsigned int j = 0 ; j < r ; ++j) + for (size_t j = 0 ; j < r ; ++j) { const unsigned char c = str[i + j]; @@ -298,7 +298,7 @@ const vmime::string toHex(const vmime::string str) chr += '.'; } - for (unsigned int j = r ; j < 16 ; ++j) + for (size_t j = r ; j < 16 ; ++j) hex += " "; res += hex + " " + chr + "\n"; -- cgit v1.2.3