[LyX/master] Satisfy sanitize handling of g++
Kornel Benko
kornel at lyx.org
Sun Aug 2 14:38:13 UTC 2026
commit 3513d24d23105501193ead9c57e973fae8a764bf
Author: Kornel Benko <kornel at lyx.org>
Date: Sun Aug 2 16:33:22 2026 +0200
Satisfy sanitize handling of g++
Since we are using ColorCode as index into a table with more than 860
entries, sanitize was choking with
"runtime error: load of value 512, which is not a valid value for type
'ColorCode'"
Setting now to value '1000'
---
src/ColorCode.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ColorCode.h b/src/ColorCode.h
index d101b43d62..417f7cf3b1 100644
--- a/src/ColorCode.h
+++ b/src/ColorCode.h
@@ -261,7 +261,7 @@ enum ColorCode {
Color_inherit,
/// For ignoring updates of a color
Color_ignore,
- Color_max = 500
+ Color_max = 1000
};
More information about the lyx-cvs
mailing list