diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-12-25 18:14:14 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-12-25 18:14:14 +0100 |
commit | 07a3db89b8953bd0964895badb3b662f7514bc10 (patch) | |
tree | 4f9120dc423b6f1a4c5f50da8c48410223a1cd85 /src/debugger.c | |
parent | 818fed7a5ea1f1b11493557989a689ff163051e9 (diff) |
patch 8.2.0044: expression type is used inconsistentlyv8.2.0044
Problem: Expression type is used inconsistently.
Solution: Add "ETYPE_IS" and "ETYPE_ISNOT" as separate enum values. Rename
"TYPE_" to "ETYPE_" to avoid confusion.
Diffstat (limited to 'src/debugger.c')
-rw-r--r-- | src/debugger.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/debugger.c b/src/debugger.c index b79f61365a..0a25e0b884 100644 --- a/src/debugger.c +++ b/src/debugger.c @@ -929,8 +929,7 @@ debuggy_find( } else { - if (typval_compare(tv, bp->dbg_val, TYPE_EQUAL, - TRUE, FALSE) == OK + if (typval_compare(tv, bp->dbg_val, ETYPE_IS, FALSE) == OK && tv->vval.v_number == FALSE) { typval_T *v; |