diff options
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r-- | src/vim9compile.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c index d1df00821..36fd2534c 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -4300,9 +4300,11 @@ compile_expr6(char_u **arg, cctx_T *cctx, ppconst_T *ppconst) { case '*': res = tv1->vval.v_number * tv2->vval.v_number; break; - case '/': res = tv1->vval.v_number / tv2->vval.v_number; + case '/': res = num_divide(tv1->vval.v_number, + tv2->vval.v_number); break; - case '%': res = tv1->vval.v_number % tv2->vval.v_number; + case '%': res = num_modulus(tv1->vval.v_number, + tv2->vval.v_number); break; } tv1->vval.v_number = res; |