From 6c0b8e732f4cf9c020efd23b58905fa8c6fbf52a Mon Sep 17 00:00:00 2001 From: Steve Hay Date: Tue, 6 Mar 2007 09:20:51 +0000 Subject: [PATCH] Reinstate part of #28744 that was accidentally reverted in #30454 to suppress a couple of warnings (at least on Win32) p4raw-id: //depot/perl@30482 --- ext/Math/BigInt/FastCalc/FastCalc.pm | 2 +- ext/Math/BigInt/FastCalc/FastCalc.xs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/Math/BigInt/FastCalc/FastCalc.pm b/ext/Math/BigInt/FastCalc/FastCalc.pm index 23b9645..160a218 100644 --- a/ext/Math/BigInt/FastCalc/FastCalc.pm +++ b/ext/Math/BigInt/FastCalc/FastCalc.pm @@ -11,7 +11,7 @@ use vars qw/@ISA $VERSION $BASE $BASE_LEN/; @ISA = qw(DynaLoader); -$VERSION = '0.12'; +$VERSION = '0.12_01'; bootstrap Math::BigInt::FastCalc $VERSION; diff --git a/ext/Math/BigInt/FastCalc/FastCalc.xs b/ext/Math/BigInt/FastCalc/FastCalc.xs index 152eb0b..3e53876 100644 --- a/ext/Math/BigInt/FastCalc/FastCalc.xs +++ b/ext/Math/BigInt/FastCalc/FastCalc.xs @@ -381,15 +381,15 @@ _len(class,x) INIT: AV* a; SV* temp; - NV elems; + IV elems; STRLEN len; CODE: a = (AV*)SvRV(x); /* ref to aray, don't check ref */ - elems = (NV) av_len(a); /* number of elems in array */ + elems = av_len(a); /* number of elems in array */ temp = *av_fetch(a, elems, 0); /* fetch last element */ SvPV(temp, len); /* convert to string & store length */ - len += XS_BASE_LEN * elems; + len += (IV) XS_BASE_LEN * elems; ST(0) = newSViv(len); ############################################################################## -- 1.8.3.1