From 9d2d7fbde8499297cf4727817626ec57dbe5efdd Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 29 Jan 2020 18:21:35 +0100 Subject: [PATCH] fixed a warning on hwrite string --- hprint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hprint.cpp b/hprint.cpp index 6c59bdcc..7c03e2c3 100644 --- a/hprint.cpp +++ b/hprint.cpp @@ -78,7 +78,7 @@ template::value inline void hwrite(hstream& hs, const string& s) { if(isize(s) >= 255) { - hs.write_char(255); + hs.write_char((char)255); hs.write(isize(s)); } for(char c: s) hs.write_char(c);