fix warning

This commit is contained in:
bolero-MURAKAMI 2014-04-23 11:44:50 +09:00
parent b04dea6002
commit 20cefe452a
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@ namespace sprout {
OutputCStrIterator result = s1;
while (*s1++)
;
while (*s1++ = *s2++)
while ((*s1++ = *s2++))
;
return result;
}

View file

@ -16,7 +16,7 @@ namespace sprout {
inline SPROUT_CXX14_CONSTEXPR OutputCStrIterator
strcpy(OutputCStrIterator s1, CStrIterator s2) {
OutputCStrIterator result = s1;
while (*s1++ = *s2++)
while ((*s1++ = *s2++))
;
return result;
}