diff options
Diffstat (limited to 'lib/fdstream.h')
-rw-r--r-- | lib/fdstream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fdstream.h b/lib/fdstream.h index a74a5781..af352c2c 100644 --- a/lib/fdstream.h +++ b/lib/fdstream.h @@ -68,7 +68,7 @@ class fdoutbuf : public std::streambuf { // write one character virtual int_type overflow (int_type c) { if (c != EOF) { - char z = c; + char z = static_cast<char>(c); if (write (fd, &z, 1) != 1) { return EOF; } |