From 7a320d29443c8412418b2e6302a9af629ceb795b Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Tue, 26 Nov 2019 11:15:45 +0100 Subject: [PATCH] fix macro processor bug that resulted in incorrect casts from string to bool --- preprocessor | 2 +- tests/example1_macro.mod | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/preprocessor b/preprocessor index 4540bed06..a61565bd0 160000 --- a/preprocessor +++ b/preprocessor @@ -1 +1 @@ -Subproject commit 4540bed06c80fcacd73bd8f34873198632396ae4 +Subproject commit a61565bd016d5d165550a4a37849c0ebf6fdd1aa diff --git a/tests/example1_macro.mod b/tests/example1_macro.mod index 9d547fa8c..be5da189c 100644 --- a/tests/example1_macro.mod +++ b/tests/example1_macro.mod @@ -214,5 +214,9 @@ stoch_simul; @#error "Range error" @#endif +@#if (bool)"FaLse" || !(bool)"TRUE" || (bool)"0" || !(bool)"-3" +@#error "Error in cast of string to bool" +@#endif + @#echomacrovars(save) @#echomacrovars