]> git.vpit.fr Git - perl/modules/Sub-Nary.git/blobdiff - Nary.xs
scale() shouldn't fill {}
[perl/modules/Sub-Nary.git] / Nary.xs
diff --git a/Nary.xs b/Nary.xs
index 285bfc39973766318639023337c2f0916e90fb0f..dc8e0890d3857907888a24b10925fad9ffe9138f 100644 (file)
--- a/Nary.xs
+++ b/Nary.xs
@@ -140,7 +140,7 @@ CODE:
  } else {
   hv = (HV *) SvRV(sv);
   if (!hv_iterinit(hv)) {
-   sn_store(res, "0", 1, newSVnv(c), 0);
+   XSRETURN_UNDEF;
   } else {
    hv_iterinit(hv);
    while (key = hv_iternext(hv)) {