From e21e55db41b8bec768369187692eeb9734961641 Mon Sep 17 00:00:00 2001
From: cosmonaut <[EMAIL REDACTED]>
Date: Wed, 20 Nov 2024 13:42:32 -0800
Subject: [PATCH] Fix MSVC warning
---
src/cli.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/cli.c b/src/cli.c
index 6478515..1525888 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -66,7 +66,7 @@ int main(int argc, char *argv[])
bool accept_optionals = true;
Uint32 numDefines = 0;
- const char **defines = NULL;
+ char **defines = NULL;
for (int i = 1; i < argc; i += 1) {
char *arg = argv[i];
@@ -172,7 +172,7 @@ int main(int argc, char *argv[])
outputFilename = argv[i];
} else if (strncmp(argv[i], "-D", strlen("-D")) == 0) {
numDefines += 1;
- defines = SDL_realloc(defines, sizeof(const char *) * numDefines);
+ defines = SDL_realloc(defines, sizeof(char *) * numDefines);
defines[numDefines - 1] = argv[i];
} else if (SDL_strcmp(arg, "--") == 0) {
accept_optionals = false;