Skip to content

Commit

Permalink
Refactor: fix always-true condition warning from Pelles C
Browse files Browse the repository at this point in the history
  • Loading branch information
positively-charged committed Jul 3, 2017
1 parent 80aedb7 commit b3fcb82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ static int convert_numerictoken_to_int( struct parse* parse, int base ) {
p_bail( parse );
}
if ( ( value == LONG_MAX && errno == ERANGE ) ||
value > ( long ) ENGINE_MAX_INT_VALUE ) {
ENGINE_MAX_INT_VALUE - value < 0 ) {
p_diag( parse, DIAG_POS_ERR, &parse->tk_pos,
"numeric value `%s` is too large", parse->tk_text );
p_bail( parse );
Expand Down

0 comments on commit b3fcb82

Please sign in to comment.