Avoid a const violation
This commit is contained in:
parent
2673969850
commit
a14aa30bde
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue