diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-07-16 09:40:47 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-07-16 09:40:47 -0700 |
commit | 86f10aa563a75a4cce703970faf2940f4f537e13 (patch) | |
tree | 4f19d07c6631542a1cace8cbbfb0cff00fd9844b /match.c | |
parent | 649c5caaeb83ad47a6239db5d76c3b3557fa639c (diff) | |
download | txr-86f10aa563a75a4cce703970faf2940f4f537e13.tar.gz txr-86f10aa563a75a4cce703970faf2940f4f537e13.tar.bz2 txr-86f10aa563a75a4cce703970faf2940f4f537e13.zip |
bugfix: pattern language undefined warning system.
* match.c (match_reg_var): The uw_tentative_def_exists
check is being made against a symbol rather than the
tag. This check will always fail. There is no ill consequence.
Just that uw_register_tentative_def will be called
redundantly when it doesn't have to be.
Diffstat (limited to 'match.c')
-rw-r--r-- | match.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4687,9 +4687,10 @@ val extract(val spec, val files, val predefined_bindings) void match_reg_var(val sym) { - if (bindable(sym) && !uw_tentative_def_exists(sym)) { + if (bindable(sym)) { val tag = cons(var_s, sym); - uw_register_tentative_def(tag); + if (!uw_tentative_def_exists(tag)) + uw_register_tentative_def(tag); } } |