[LyX/master] Satisfy sanitize handling of g++

Kornel Benko <[email protected]> Sun, 02 Aug 2026 14:38:13 +0000
Newsgroups gmane.editors.lyx.cvs
Message-ID <[email protected]>
commit 3513d24d23105501193ead9c57e973fae8a764bf
Author: Kornel Benko <[email protected]>
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
 };
 
 
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs