fix 'warning: overflow in conversion from ‘rw::Errors’ to ‘rw::int32’ {aka ‘int’} changes value from ‘(rw::Errors)2147483650’ to ‘-2147483646’ [-Woverflow]'

This commit is contained in:
Anonymous Maarten 2018-07-13 01:50:18 +02:00
parent add55f08c5
commit 020e66a282
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ const char *errstrs[] = {
#undef ECODE #undef ECODE
char* char*
dbgsprint(int32 code, ...) dbgsprint(uint32 code, ...)
{ {
va_list ap; va_list ap;
static char strbuf[512]; static char strbuf[512];

View File

@ -10,7 +10,7 @@ void setError(Error *e);
Error *getError(Error *e); Error *getError(Error *e);
#define _ERRORCODE(code, ...) code #define _ERRORCODE(code, ...) code
char *dbgsprint(int32 code, ...); char *dbgsprint(uint32 code, ...);
/* ecode is supposed to be in format "(errorcode, printf-arguments..)" */ /* ecode is supposed to be in format "(errorcode, printf-arguments..)" */
#define RWERROR(ecode) do{ \ #define RWERROR(ecode) do{ \