mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-10-31 19:36:16 +00:00
fixed a warning on hwrite string
This commit is contained in:
parent
081fee1907
commit
9d2d7fbde8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user