summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ColorContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ColorContext.cpp b/src/ColorContext.cpp
index e136126b..23b568f1 100644
--- a/src/ColorContext.cpp
+++ b/src/ColorContext.cpp
@@ -29,7 +29,7 @@ ColorContext::ColorContext(FILE* stream, Color color)
: _stream(stream)
{
if (isatty(fileno(_stream))) {
- fprintf(_stream, "\033[0;%dm", color);
+ fprintf(_stream, "\033[0;%dm", (int)color);
}
}