From cedc661686dad6d82b0a96ea1490d36bc5ffee63 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 14 Jun 2022 06:15:57 +0200 Subject: Tighten value::extra usage in config module Specifically, only values marked with 1 are treated as default leaving other values for use for other purposes. --- libbuild2/config/utility.txx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbuild2/config/utility.txx') diff --git a/libbuild2/config/utility.txx b/libbuild2/config/utility.txx index 0362d6a..71e41fd 100644 --- a/libbuild2/config/utility.txx +++ b/libbuild2/config/utility.txx @@ -66,7 +66,7 @@ namespace build2 } // Treat an inherited value that was set to default as new. // - else if (l->extra) + else if (l->extra == 1) n = (sflags & save_default_commented) == 0; // Absence means default. if (var.overrides != nullptr) -- cgit v1.1