We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb52cd9 commit 92eb6cfCopy full SHA for 92eb6cf
1 file changed
vlib/strings/builder.c.v
@@ -80,8 +80,13 @@ pub fn (mut b Builder) write_decimal(n i64) {
80
b.write_u8(0x30)
81
return
82
}
83
+ if n == min_i64 {
84
+ b.write_string(n.str())
85
+ return
86
+ }
87
+
88
mut buf := [25]u8{}
- mut x := if n < 0 { u64(-n) } else { u64(n) }
89
+ mut x := if n < 0 { -n } else { n }
90
mut i := 24
91
for x != 0 {
92
nextx := x / 10
0 commit comments