diff --git a/src/highlight.h b/src/highlight.h index 621ce7943..b08902d45 100644 --- a/src/highlight.h +++ b/src/highlight.h @@ -76,7 +76,7 @@ namespace std { template <> struct hash { std::size_t operator()(const highlight_spec_t &v) const { - size_t vals[4] = {static_cast(v.foreground), static_cast(v.background), + const size_t vals[4] = {static_cast(v.foreground), static_cast(v.background), v.valid_path, v.force_underline}; return (vals[0] << 0) + (vals[1] << 6) + (vals[2] << 12) + (vals[3] << 18); }