Fix handling of expression width in $past, fixes #810
authorClifford Wolf <clifford@clifford.at>
Thu, 21 Feb 2019 16:55:33 +0000 (17:55 +0100)
committerClifford Wolf <clifford@clifford.at>
Thu, 21 Feb 2019 16:55:33 +0000 (17:55 +0100)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
frontends/ast/simplify.cc

index 83714f897390177f93a7dd68d3b68011c2be8e21..6ae62ead80035b8de83697ffdef35633ea3c43bb 100644 (file)
@@ -1778,7 +1778,7 @@ skip_dynamic_range_lvalue_expansion:;
 
                        if (str == "\\$past")
                        {
-                               if (width_hint <= 0)
+                               if (width_hint < 0)
                                        goto replace_fcall_later;
 
                                int num_steps = 1;