Unignore and fix warnings in Library/

This commit is contained in:
Birunthan Mohanathas
2013-12-23 19:42:31 +00:00
parent b25a7849d6
commit a577608835
16 changed files with 34 additions and 29 deletions

View File

@ -276,11 +276,11 @@ const WCHAR* Measure::CheckSubstitute(const WCHAR* buffer)
re,
nullptr, // No extra data - we didn't study the pattern
utf8str.c_str(), // The subject string
utf8str.length(), // The length of the subject
(int)utf8str.length(), // The length of the subject
offset,
0,
ovector,
_countof(ovector));
(int)_countof(ovector));
if (rc <= 0)
{
break;
@ -311,10 +311,10 @@ const WCHAR* Measure::CheckSubstitute(const WCHAR* buffer)
}
}
const size_t start = ovector[0];
const size_t length = ovector[1] - ovector[0];
const int start = ovector[0];
const int length = ovector[1] - ovector[0];
utf8str.replace(start, length, result);
offset = start + result.length();
offset = start + (int)result.length();
}
while (true);