Skip to content

Commit

Permalink
CodeQL constred long multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
smaludzi committed May 11, 2024
1 parent fe554a7 commit 963b096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion front/constred.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ int expr_mul_constred(expr * value, int * result)

value->type = EXPR_LONG;
value->comb.comb = COMB_TYPE_LONG;
value->long_value = left_value->int_value * right_value->int_value;
value->long_value = (long long)left_value->int_value * (long long)right_value->int_value;

expr_delete(left_value);
expr_delete(right_value);
Expand Down

0 comments on commit 963b096

Please sign in to comment.