From 96b9057896b4244b54cb3d6defb60df5ef0cd52b Mon Sep 17 00:00:00 2001 From: Pan7 Date: Tue, 23 Aug 2016 13:20:48 +0200 Subject: [PATCH] Fix gcc warning iteration 86u invokes undefined behavior --- radiant/texwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radiant/texwindow.cpp b/radiant/texwindow.cpp index ec20e357..1de0519a 100644 --- a/radiant/texwindow.cpp +++ b/radiant/texwindow.cpp @@ -50,7 +50,7 @@ #include "texmanip.h" #define TYP_MIPTEX 68 -static unsigned tex_palette[256]; +static unsigned tex_palette[256 * 3]; #define FONT_HEIGHT 10