forked from enlightenment/efl
fix warnings on 64 bits arch
patch by Albin Tonerre, modified by me so that vc++ is happy SVN revision: 45428
This commit is contained in:
parent
b2f0971068
commit
9aec8f6722
|
@ -36,6 +36,12 @@
|
|||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
|
||||
#ifndef _MSC_VER
|
||||
# include <stdint.h>
|
||||
#else
|
||||
# include <stddef.h>
|
||||
#endif
|
||||
|
||||
#include "embryo_cc_amx.h"
|
||||
|
||||
/* Note: the "cell" and "ucell" types are defined in AMX.H */
|
||||
|
@ -53,7 +59,7 @@
|
|||
#define PREPROC_TERM '\x7f' /* termination character for preprocessor expressions (the "DEL" code) */
|
||||
#define sDEF_PREFIX "default.inc" /* default prefix filename */
|
||||
|
||||
typedef void *stkitem; /* type of items stored on the stack */
|
||||
typedef intptr_t stkitem; /* type of items stored on the stack */
|
||||
|
||||
typedef struct __s_arginfo
|
||||
{ /* function argument info */
|
||||
|
|
|
@ -3443,7 +3443,6 @@ test(int label, int parens, int invert)
|
|||
#endif
|
||||
} /* if */
|
||||
|
||||
/* FIXME: 64bit unsafe! putting an int on a stack of void *'s */
|
||||
pushstk((stkitem) intest);
|
||||
intest = 1;
|
||||
if (parens)
|
||||
|
|
|
@ -116,14 +116,10 @@ plungequalifiedfile(char *name)
|
|||
pushstk((stkitem) inpf);
|
||||
pushstk((stkitem) inpfname); /* pointer to current file name */
|
||||
pushstk((stkitem) curlibrary);
|
||||
/* FIXME: 64bit unsafe */
|
||||
pushstk((stkitem) iflevel);
|
||||
assert(skiplevel == 0);
|
||||
/* FIXME: 64bit unsafe */
|
||||
pushstk((stkitem) icomment);
|
||||
/* FIXME: 64bit unsafe */
|
||||
pushstk((stkitem) fcurrent);
|
||||
/* FIXME: 64bit unsafe */
|
||||
pushstk((stkitem) fline);
|
||||
inpfname = strdup(name); /* set name of include file */
|
||||
if (inpfname == NULL)
|
||||
|
|
|
@ -1698,9 +1698,7 @@ primary(value * lval)
|
|||
|
||||
if (matchtoken('('))
|
||||
{ /* sub-expression - (expression,...) */
|
||||
/* FIXME: 64bit unsafe */
|
||||
pushstk((stkitem) intest);
|
||||
/* FIXME: 64bit unsafe */
|
||||
pushstk((stkitem) sc_allowtags);
|
||||
|
||||
intest = 0; /* no longer in "test" expression */
|
||||
|
|
Loading…
Reference in New Issue