From d3b494fb2b67c07bb6f19eff74d848a4e9dab0a2 Mon Sep 17 00:00:00 2001 From: Courtney Peverley Date: Thu, 7 Nov 2024 10:37:28 -0700 Subject: [PATCH] fix errflg variable name in cap (#609) Fixes bug introduced by me in #608. Use variable errflg name instead of "errflg" explicitly --- scripts/host_cap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/host_cap.py b/scripts/host_cap.py index be0bac21..d050dcdf 100644 --- a/scripts/host_cap.py +++ b/scripts/host_cap.py @@ -744,7 +744,7 @@ def write_host_cap(host_model, api, module_name, output_dir, run_env): call_str = suite_part_call_list(host_model, const_dict, spart, False, dyn_const=True) cap.write(f"call {suite.name}_{stage}({call_str})", 3) - cap.write("if (errflg /= 0) then", 3) + cap.write(f"if ({errflg_name} /= 0) then", 3) cap.write("return", 4) cap.write("end if", 3) # Allocate the suite's dynamic constituents array