x.json2: change default number type to i64 (#6773)

pull/6785/head
div72 2020-11-09 09:37:53 +03:00 committed by GitHub
parent ba366b126f
commit b0053d8910
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ fn (p Parser) emit_error(msg string) string {
}
column := util.imax(0, cur.pos - pp + cur.len - 1)
line := cur.line_nr
return '[jisoni] $msg ($line:$column)'
return '[json] $msg ($line:$column)'
}
fn new_parser(srce string, convert_type bool) Parser {
@ -291,7 +291,7 @@ fn (mut p Parser) decode_number() ?Any {
}
if tl.starts_with('.') {
return error('lecimals must start with a digit followed by a dot.')
return error('decimals must start with a digit followed by a dot.')
}
if tl.ends_with('+') || tl.ends_with('-') {
@ -318,7 +318,7 @@ fn (mut p Parser) decode_number() ?Any {
return if is_fl {
Any(tl.f64())
} else {
Any(tl.int())
Any(tl.i64())
}
}