mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix some alpha warnings
This commit is contained in:
parent
a5ead00f8e
commit
f94eeb55a2
1 changed files with 9 additions and 2 deletions
|
@ -23,6 +23,13 @@ static const char rcsid[] =
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
#include <sys/types.h>
|
||||
#ifdef HAVE_SYS_WAIT_H
|
||||
# include <sys/wait.h>
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
#ifdef HAVE_STRING_H
|
||||
# include <string.h>
|
||||
#endif
|
||||
|
@ -139,7 +146,7 @@ CopyWinding (winding_t *w)
|
|||
int size;
|
||||
winding_t *c;
|
||||
|
||||
size = (int) ((winding_t *) 0)->points[w->numpoints];
|
||||
size = (long) ((winding_t *) 0)->points[w->numpoints];
|
||||
c = malloc (size);
|
||||
memcpy (c, w, size);
|
||||
return c;
|
||||
|
@ -375,7 +382,7 @@ NewWinding (int points)
|
|||
if (c_activewindings > c_peakwindings)
|
||||
c_peakwindings = c_activewindings;
|
||||
|
||||
size = (int) ((winding_t *) 0)->points[points];
|
||||
size = (long) ((winding_t *) 0)->points[points];
|
||||
w = malloc (size);
|
||||
memset (w, 0, size);
|
||||
|
||||
|
|
Loading…
Reference in a new issue