diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-04-07 14:02:01 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-04-07 14:02:01 +0200 |
commit | 866c68861071f8cd1ef5a82445bebaafc8626e7e (patch) | |
tree | 404ce70bd6716788176cb6a24448de162de57cda /src/farsi.c | |
parent | ba6ec182973af726ce9b7b7eb3753fc3a7ae7d1b (diff) | |
download | vim-git-866c68861071f8cd1ef5a82445bebaafc8626e7e.tar.gz |
patch 8.0.0544: cppcheck warningsv8.0.0544
Problem: Cppcheck warnings.
Solution: Use temp variable. Change NUL to NULL. Swap conditions. (Dominique
Pelle)
Diffstat (limited to 'src/farsi.c')
-rw-r--r-- | src/farsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/farsi.c b/src/farsi.c index bac15109e..ebed47e6e 100644 --- a/src/farsi.c +++ b/src/farsi.c @@ -1695,7 +1695,7 @@ conv_to_pvim(void) ptr[i] = toF_leading(ptr[i]); ++i; - while (canF_Rjoin(ptr[i]) && i < llen) + while (i < llen && canF_Rjoin(ptr[i])) { ptr[i] = toF_Rjoin(ptr[i]); if (F_isterm(ptr[i]) || !F_isalpha(ptr[i])) |