X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=XSUB.h;h=c93ed2d38a8befddabc15590f2a808ec273fc3e0;hb=23d4cb2f54c8d94af11297178803748d2b894d65;hp=f7d04a84fad9aca30b516e274e95551483422065;hpb=699a97de988b5b9b54375d79201e72f1c259685c;p=p5sagit%2Fp5-mst-13.2.git diff --git a/XSUB.h b/XSUB.h index f7d04a8..c93ed2d 100644 --- a/XSUB.h +++ b/XSUB.h @@ -115,13 +115,13 @@ is a lexical $_ in scope. # endif #endif -#define dAX const I32 ax = MARK - PL_stack_base + 1 +#define dAX const I32 ax = (I32)(MARK - PL_stack_base + 1) #define dAXMARK \ I32 ax = POPMARK; \ register SV **mark = PL_stack_base + ax++ -#define dITEMS I32 items = SP - MARK +#define dITEMS I32 items = (I32)(SP - MARK) #if defined(lint) && defined(S_SPLINT_S) /* www.splint.org */ # define dXSARGS \ @@ -262,7 +262,7 @@ Rethrows a previously caught exception. See L. #define XSRETURN(off) \ STMT_START { \ - IV tmpXSoff = (off); \ + const IV tmpXSoff = (off); \ PL_stack_sp = PL_stack_base + ax + (tmpXSoff - 1); \ return; \ } STMT_END