mirror of
https://github.com/aap/librw.git
synced 2024-11-25 21:25:42 +00:00
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
|
#undef ECODE
|
||||||
|
|
||||||
char*
|
char*
|
||||||
dbgsprint(int32 code, ...)
|
dbgsprint(uint32 code, ...)
|
||||||
{
|
{
|
||||||
va_list ap;
|
va_list ap;
|
||||||
static char strbuf[512];
|
static char strbuf[512];
|
||||||
|
@ -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{ \
|
||||||
|
Loading…
Reference in New Issue
Block a user