From: Michael Wetherell Date: Sun, 27 Nov 2005 01:56:51 +0000 (+0000) Subject: Silence warning about truncation since the comment says it ok X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c1d8296a78d1f630952fc5395e4072c8a654b8ef Silence warning about truncation since the comment says it ok git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/regex/regcomp.c b/src/regex/regcomp.c index c634d6b1b9..4ad457ff95 100644 --- a/src/regex/regcomp.c +++ b/src/regex/regcomp.c @@ -2168,7 +2168,7 @@ size_t bufsize; if (t->retry != 0) sprintf(buf, "%d", t->retry); else - sprintf(buf, "0x%x", (int)t); /* may lose bits, that's okay */ + sprintf(buf, "0x%x", (int)(wxUIntPtr)(t)); /* may lose bits, that's okay */ return buf; }