Mercurial > vim
comparison src/vim9execute.c @ 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 | 6d35bc0f161e |
children | e7f5931b46ca |
comparison
equal
deleted
inserted
replaced
23680:edc03877acad | 23681:423af0f7beae |
---|---|
2949 --ectx.ec_stack.ga_len; | 2949 --ectx.ec_stack.ga_len; |
2950 } | 2950 } |
2951 else | 2951 else |
2952 #endif | 2952 #endif |
2953 { | 2953 { |
2954 int failed = FALSE; | |
2955 | |
2954 switch (iptr->isn_arg.op.op_type) | 2956 switch (iptr->isn_arg.op.op_type) |
2955 { | 2957 { |
2956 case EXPR_MULT: n1 = n1 * n2; break; | 2958 case EXPR_MULT: n1 = n1 * n2; break; |
2957 case EXPR_DIV: n1 = num_divide(n1, n2); | 2959 case EXPR_DIV: n1 = num_divide(n1, n2, &failed); |
2958 if (n2 == 0) | 2960 if (failed) |
2959 goto on_error; | 2961 goto on_error; |
2960 break; | 2962 break; |
2961 case EXPR_SUB: n1 = n1 - n2; break; | 2963 case EXPR_SUB: n1 = n1 - n2; break; |
2962 case EXPR_ADD: n1 = n1 + n2; break; | 2964 case EXPR_ADD: n1 = n1 + n2; break; |
2963 default: n1 = num_modulus(n1, n2); | 2965 default: n1 = num_modulus(n1, n2, &failed); |
2964 if (n2 == 0) | 2966 if (failed) |
2965 goto on_error; | 2967 goto on_error; |
2966 break; | 2968 break; |
2967 } | 2969 } |
2968 clear_tv(tv1); | 2970 clear_tv(tv1); |
2969 clear_tv(tv2); | 2971 clear_tv(tv2); |