mirror of https://github.com/aap/librw.git
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:
parent
add55f08c5
commit
020e66a282
|
@ -33,7 +33,7 @@ const char *errstrs[] = {
|
|||
#undef ECODE
|
||||
|
||||
char*
|
||||
dbgsprint(int32 code, ...)
|
||||
dbgsprint(uint32 code, ...)
|
||||
{
|
||||
va_list ap;
|
||||
static char strbuf[512];
|
||||
|
|
|
@ -10,7 +10,7 @@ void setError(Error *e);
|
|||
Error *getError(Error *e);
|
||||
|
||||
#define _ERRORCODE(code, ...) code
|
||||
char *dbgsprint(int32 code, ...);
|
||||
char *dbgsprint(uint32 code, ...);
|
||||
|
||||
/* ecode is supposed to be in format "(errorcode, printf-arguments..)" */
|
||||
#define RWERROR(ecode) do{ \
|
||||
|
|
Loading…
Reference in New Issue