Skip to content

Commit b0053d8

Browse files
authored
x.json2: change default number type to i64 (#6773)
1 parent ba366b1 commit b0053d8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

vlib/x/json2/decoder.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fn (p Parser) emit_error(msg string) string {
6262
}
6363
column := util.imax(0, cur.pos - pp + cur.len - 1)
6464
line := cur.line_nr
65-
return '[jisoni] $msg ($line:$column)'
65+
return '[json] $msg ($line:$column)'
6666
}
6767

6868
fn new_parser(srce string, convert_type bool) Parser {
@@ -291,7 +291,7 @@ fn (mut p Parser) decode_number() ?Any {
291291
}
292292

293293
if tl.starts_with('.') {
294-
return error('lecimals must start with a digit followed by a dot.')
294+
return error('decimals must start with a digit followed by a dot.')
295295
}
296296

297297
if tl.ends_with('+') || tl.ends_with('-') {
@@ -318,7 +318,7 @@ fn (mut p Parser) decode_number() ?Any {
318318
return if is_fl {
319319
Any(tl.f64())
320320
} else {
321-
Any(tl.int())
321+
Any(tl.i64())
322322
}
323323
}
324324

0 commit comments

Comments
 (0)