mirror of
https://github.com/bolero-MURAKAMI/Sprout
synced 2024-11-12 21:09:01 +00:00
fix warning
This commit is contained in:
parent
b04dea6002
commit
20cefe452a
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ namespace sprout {
|
|||
OutputCStrIterator result = s1;
|
||||
while (*s1++)
|
||||
;
|
||||
while (*s1++ = *s2++)
|
||||
while ((*s1++ = *s2++))
|
||||
;
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue