Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andygrove committed Apr 25, 2024
1 parent 8c87059 commit 1659a4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/execution/datafusion/expressions/cast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ fn do_cast_string_to_int(
}

// skip + or -
let negative = chars[0] == '-';
if negative || chars[0] == '+' {
let negative = chars[i] == '-';
if negative || chars[i] == '+' {
i += 1;
if i == end {
accumulator.reset();
Expand Down

0 comments on commit 1659a4c

Please sign in to comment.