fixed a warning on hwrite string

This commit is contained in:
Zeno Rogue 2020-01-29 18:21:35 +01:00
parent 081fee1907
commit 9d2d7fbde8
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ template<class T, typename = typename std::enable_if<std::is_integral<T>::value
inline void hwrite(hstream& hs, const string& s) {
if(isize(s) >= 255) {
hs.write_char(255);
hs.write_char((char)255);
hs.write<int>(isize(s));
}
for(char c: s) hs.write_char(c);