From 58613582380de0c29bec55db91dccf9b63ec0351 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Thu, 7 Apr 2022 09:23:42 -0700 Subject: [PATCH] const size_t vals[4] --- src/highlight.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }