From a14aa30bde008fe40c6a6f846a0c5e687b7c249f Mon Sep 17 00:00:00 2001 From: Clownacy Date: Wed, 21 Oct 2020 00:00:35 +0100 Subject: [PATCH] Avoid a const violation --- src/Font.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Font.cpp b/src/Font.cpp index 6d637de0..95562674 100644 --- a/src/Font.cpp +++ b/src/Font.cpp @@ -1322,8 +1322,8 @@ void DrawText(Font *font, RenderBackend_Surface *surface, int x, int y, unsigned size_t pen_x = 0; - const unsigned char *string_pointer = (unsigned char*)string; - const unsigned char *string_end = (unsigned char*)string + strlen(string); + const unsigned char *string_pointer = (const unsigned char*)string; + const unsigned char *string_end = (const unsigned char*)string + strlen(string); while (string_pointer != string_end) {