From: Zefram Date: Mon, 3 Feb 2014 02:28:14 +0000 (-0800) Subject: RT#91983: format warnings during compilation X-Git-Tag: v0.006015~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d44b3df5ad4fb7cf8c5a877a33215120bc8c137a;p=p5sagit%2FDevel-Declare.git RT#91983: format warnings during compilation --- diff --git a/Declare.xs b/Declare.xs index 47f9482..3f3218d 100644 --- a/Declare.xs +++ b/Declare.xs @@ -257,9 +257,9 @@ static void call_done_declare(pTHX) { if (DD_DEBUG_TRACE) { printf("Deconstructing declare\n"); printf("PL_bufptr: %s\n", PL_bufptr); - printf("bufend at: %i\n", PL_bufend - PL_bufptr); + printf("bufend at: %i\n", (int)(PL_bufend - PL_bufptr)); printf("linestr: %s\n", SvPVX(PL_linestr)); - printf("linestr len: %i\n", PL_bufend - SvPVX(PL_linestr)); + printf("linestr len: %i\n", (int)(PL_bufend - SvPVX(PL_linestr))); } ENTER; @@ -274,10 +274,10 @@ static void call_done_declare(pTHX) { if (DD_DEBUG_TRACE) { printf("PL_bufptr: %s\n", PL_bufptr); - printf("bufend at: %i\n", PL_bufend - PL_bufptr); + printf("bufend at: %i\n", (int)(PL_bufend - PL_bufptr)); printf("linestr: %s\n", SvPVX(PL_linestr)); - printf("linestr len: %i\n", PL_bufend - SvPVX(PL_linestr)); - printf("actual len: %i\n", strlen(PL_bufptr)); + printf("linestr len: %i\n", (int)(PL_bufend - SvPVX(PL_linestr))); + printf("actual len: %i\n", (int)strlen(PL_bufptr)); } }