diff options
Diffstat (limited to 'highlight.cpp')
-rw-r--r-- | highlight.cpp | 2 |
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; } |