From 020e66a28285babbefc67465349ec01a6ea9c1b1 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Fri, 13 Jul 2018 01:50:18 +0200 Subject: [PATCH] =?UTF-8?q?fix=20'warning:=20overflow=20in=20conversion=20?= =?UTF-8?q?from=20=E2=80=98rw::Errors=E2=80=99=20to=20=E2=80=98rw::int32?= =?UTF-8?q?=E2=80=99=20{aka=20=E2=80=98int=E2=80=99}=20changes=20value=20f?= =?UTF-8?q?rom=20=E2=80=98(rw::Errors)2147483650=E2=80=99=20to=20=E2=80=98?= =?UTF-8?q?-2147483646=E2=80=99=20[-Woverflow]'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/error.cpp | 2 +- src/rwerror.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/error.cpp b/src/error.cpp index 5f26d97..889cd47 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -33,7 +33,7 @@ const char *errstrs[] = { #undef ECODE char* -dbgsprint(int32 code, ...) +dbgsprint(uint32 code, ...) { va_list ap; static char strbuf[512]; diff --git a/src/rwerror.h b/src/rwerror.h index 937cc0e..2575626 100644 --- a/src/rwerror.h +++ b/src/rwerror.h @@ -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{ \