0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2382: build failure

Problem:    Build failure.
Solution:   Add missing changes.
This commit is contained in:
Bram Moolenaar
2021-01-21 13:03:20 +01:00
parent c5f59fab23
commit b1f2857096
2 changed files with 8 additions and 4 deletions

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2382,
/**/ /**/
2381, 2381,
/**/ /**/

View File

@@ -2951,17 +2951,19 @@ call_def_function(
else else
#endif #endif
{ {
int failed = FALSE;
switch (iptr->isn_arg.op.op_type) switch (iptr->isn_arg.op.op_type)
{ {
case EXPR_MULT: n1 = n1 * n2; break; case EXPR_MULT: n1 = n1 * n2; break;
case EXPR_DIV: n1 = num_divide(n1, n2); case EXPR_DIV: n1 = num_divide(n1, n2, &failed);
if (n2 == 0) if (failed)
goto on_error; goto on_error;
break; break;
case EXPR_SUB: n1 = n1 - n2; break; case EXPR_SUB: n1 = n1 - n2; break;
case EXPR_ADD: n1 = n1 + n2; break; case EXPR_ADD: n1 = n1 + n2; break;
default: n1 = num_modulus(n1, n2); default: n1 = num_modulus(n1, n2, &failed);
if (n2 == 0) if (failed)
goto on_error; goto on_error;
break; break;
} }