1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-08 02:33:12 +02:00

core: fix integer overflow with decimal numbers in calculation of expression

This commit is contained in:
Sébastien Helleu
2025-05-05 20:25:41 +02:00
parent 68d87f2b80
commit 5b4820ab06
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -338,9 +338,9 @@ calc_expression (const char *expr)
struct t_arraylist *list_values, *list_ops;
const char *ptr_expr, *ptr_expr2;
char str_result[64], *ptr_operator, *operator;
int index_op, decimals;
int index_op;
enum t_calc_symbol last_symbol;
double value, factor, *ptr_value;
double value, factor, decimals, *ptr_value;
list_values = NULL;
list_ops = NULL;