aboutsummaryrefslogtreecommitdiffhomepage
path: root/highlight.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'highlight.cpp')
-rw-r--r--highlight.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/highlight.cpp b/highlight.cpp
index ed575928..2feef184 100644
--- a/highlight.cpp
+++ b/highlight.cpp
@@ -1314,7 +1314,7 @@ void highlight_shell( const wcstring &buff, std::vector<int> &color, size_t pos,
// highlight the end of the subcommand
assert(end >= subbuff);
- if ((end - subbuff) < length) {
+ if ((size_t)(end - subbuff) < length) {
color.at(end-subbuff)=HIGHLIGHT_OPERATOR;
}