1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-18 11:19:59 +00:00

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

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);