diff --git a/hprint.cpp b/hprint.cpp index a7e64035..6247cd73 100644 --- a/hprint.cpp +++ b/hprint.cpp @@ -82,6 +82,8 @@ inline void hwrite(hstream& hs, const string& s) { hs.write_char((char)255); hs.write(isize(s)); } + else + hs.write_char(isize(s)); for(char c: s) hs.write_char(c); } inline void hread(hstream& hs, string& s) {