From c5798e0eb557cf13852a3982429a641d5c88bcbe Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Wed, 9 Mar 2016 23:58:44 +0100 Subject: [PATCH] Correct slight logic error in processing IF in build.info This corrects a fault where the inner IF in this example was still being acted upon: IF[0] ...whatever... IF[1] ...whatever more... ENDIF ENDIF With this change, the inner IF is skipped over. Reviewed-by: Matt Caswell --- Configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Configure b/Configure index eb7e54c2b2..2b621f5ba0 100755 --- a/Configure +++ b/Configure @@ -1334,7 +1334,7 @@ if ($builder eq "unified") { # Info we're looking for qr/^\s*IF\[((?:\\.|[^\\\]])*)\]\s*$/ => sub { - if (! @skip || $skip[$#skip] >= 0) { + if (! @skip || $skip[$#skip] > 0) { push @skip, !! $1; } else { push @skip, -1; -- 2.25.1