summaryrefslogtreecommitdiff
path: root/src/pyfstream.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pyfstream.h')
-rw-r--r--src/pyfstream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyfstream.h b/src/pyfstream.h
index 2b21b45e..5e39d38d 100644
--- a/src/pyfstream.h
+++ b/src/pyfstream.h
@@ -56,7 +56,7 @@ protected:
virtual int_type overflow (int_type c) {
if (c != EOF) {
char z[2];
- z[0] = c;
+ z[0] = static_cast<char>(c);
z[1] = '\0';
if (PyFile_WriteString(z, reinterpret_cast<PyObject *>(fo)) < 0) {
return EOF;