summaryrefslogtreecommitdiff
path: root/ext/Math/BigInt/FastCalc/FastCalc.xs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/Math/BigInt/FastCalc/FastCalc.xs')
-rw-r--r--ext/Math/BigInt/FastCalc/FastCalc.xs6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/Math/BigInt/FastCalc/FastCalc.xs b/ext/Math/BigInt/FastCalc/FastCalc.xs
index 658996279a..f99017154f 100644
--- a/ext/Math/BigInt/FastCalc/FastCalc.xs
+++ b/ext/Math/BigInt/FastCalc/FastCalc.xs
@@ -388,15 +388,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);
##############################################################################