diff options
Diffstat (limited to 'libbuild2/script/script.cxx')
-rw-r--r-- | libbuild2/script/script.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbuild2/script/script.cxx b/libbuild2/script/script.cxx index c9b3a5e..d0d3304 100644 --- a/libbuild2/script/script.cxx +++ b/libbuild2/script/script.cxx @@ -406,15 +406,15 @@ namespace build2 print_path (p.path); } - if (c.exit.comparison != exit_comparison::eq || c.exit.code != 0) + if (c.exit) { - switch (c.exit.comparison) + switch (c.exit->comparison) { case exit_comparison::eq: o << " == "; break; case exit_comparison::ne: o << " != "; break; } - o << static_cast<uint16_t> (c.exit.code); + o << static_cast<uint16_t> (c.exit->code); } } |