]> git.vpit.fr Git - perl/modules/Sub-Nary.git/blobdiff - lib/Sub/Nary.pm
Fix a bug the handling of if (do { return if ; }) { ... }
[perl/modules/Sub-Nary.git] / lib / Sub / Nary.pm
index 611f780d617ad220649149b56ab64094db53cb59..50ba378034fa54a17ab6a2e4366926528aa3e52f 100644 (file)
@@ -273,7 +273,7 @@ sub inspect {
   if (null $op) {
    # If the logop has no else branch, it can also return the *scalar* result of
    # the conditional
-   $l3 = { 1 => $c };
+   $l3 = { 1 => 1 };
   } else {
    ($r3, $l3) = $self->inspect($op);
   }