Skip to content
Snippets Groups Projects
Commit 8cd7e62e authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix GCC 12.2 warning

warning: argument 1 value ‘18446744073709551608’ exceeds maximum
object size 9223372036854775807 [-Walloc-size-larger-than=]
parent cdaba0e6
No related branches found
No related tags found
No related merge requests found
...@@ -11966,6 +11966,8 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs) ...@@ -11966,6 +11966,8 @@ do_rip_command(int level, int sublevel, int cmd, const char *rawargs)
if (no_viewport()) if (no_viewport())
break; break;
arg1 = parse_mega(&args[0], 2); arg1 = parse_mega(&args[0], 2);
if(arg1 < 1)
break;
struct point *argv = malloc(sizeof(struct point) * arg1); struct point *argv = malloc(sizeof(struct point) * arg1);
x1 = rip.x_dim - 1; x1 = rip.x_dim - 1;
y1 = rip.x_dim - 1; y1 = rip.x_dim - 1;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment