aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WindowAccessor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/WindowAccessor.cxx')
-rw-r--r--src/WindowAccessor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WindowAccessor.cxx b/src/WindowAccessor.cxx
index e1e8ed876..059c877bd 100644
--- a/src/WindowAccessor.cxx
+++ b/src/WindowAccessor.cxx
@@ -105,7 +105,7 @@ void WindowAccessor::ColourTo(unsigned int pos, int chAttr) {
chFlags = 0;
chAttr |= chFlags;
for (unsigned int i = startSeg; i <= pos; i++) {
- styleBuf[validLen++] = chAttr;
+ styleBuf[validLen++] = static_cast<char>(chAttr);
}
}
}