Skip to content

Commit

Permalink
avoid a vlib/v/eval/ deficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Feb 17, 2025
1 parent fdf6686 commit 55ea5dd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vlib/strconv/atoi.v
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,5 @@ pub fn atoi(s string) !int {
return int(x)
}

const i64_min_int32 = i64(min_int+1)-1 // msvc has a bug that treats just i64(min_int) as 2147483648 :-(; this is a workaround for it
const i64_max_int32 = i64(max_int-1)+1

const i64_min_int32 = i64(-2147483647) - 1 // msvc has a bug that treats just i64(min_int) as 2147483648 :-(; this is a workaround for it
const i64_max_int32 = i64(2147483646) + 1

0 comments on commit 55ea5dd

Please sign in to comment.