Skip to content

Commit

Permalink
remove minus sign from string parser (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-littlefarmer authored Oct 22, 2024
1 parent 13f0eec commit 70b926f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prototyp/bigint.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func ParseNumberString(s string, base int) (int64, bool) {
case 2:
for _, char := range s {
// 0-9 || B || b
if (char >= 48 && char <= 57) || char == 45 || char == 66 || char == 98 {
if (char >= 48 && char <= 57) || char == 66 || char == 98 {
ns.WriteRune(char)
}
}
Expand Down

0 comments on commit 70b926f

Please sign in to comment.