Mercurial > vim
changeset 23681:423af0f7beae v8.2.2382
patch 8.2.2382: build failure
Commit: https://github.com/vim/vim/commit/b1f2857096aabe9a11e576005d08fc4e53781698
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 21 13:03:20 2021 +0100
patch 8.2.2382: build failure
Problem: Build failure.
Solution: Add missing changes.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 21 Jan 2021 13:15:04 +0100 |
parents | edc03877acad |
children | ef9695df90ed |
files | src/version.c src/vim9execute.c |
diffstat | 2 files changed, 8 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2382, +/**/ 2381, /**/ 2380,
--- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -2951,17 +2951,19 @@ call_def_function( else #endif { + int failed = FALSE; + switch (iptr->isn_arg.op.op_type) { case EXPR_MULT: n1 = n1 * n2; break; - case EXPR_DIV: n1 = num_divide(n1, n2); - if (n2 == 0) + case EXPR_DIV: n1 = num_divide(n1, n2, &failed); + if (failed) goto on_error; break; case EXPR_SUB: n1 = n1 - n2; break; case EXPR_ADD: n1 = n1 + n2; break; - default: n1 = num_modulus(n1, n2); - if (n2 == 0) + default: n1 = num_modulus(n1, n2, &failed); + if (failed) goto on_error; break; }