Skip to content

Commit 7034a5d

Browse files
committed
Increase default value of Maximum_Number_Length to a more sane value
Signed-off-by: onox <[email protected]>
1 parent b78a99d commit 7034a5d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ package Parsers is new JSON.Parsers (Types);
2222
```
2323

2424
You can replace the actual generic parameters of `JSON.Types` with your
25-
own types if you want. Specify `Maximum_Number_Length` (default is 20)
25+
own types if you want. Specify `Maximum_Number_Length` (default is 30)
2626
when instantiating `JSON.Types` to set the maximum length in characters
2727
of numbers. The default maximum nesting depth can be specified with
2828
`Default_Maximum_Depth` (default is 10).

src/json-types.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ generic
2323
type Integer_Type is range <>;
2424
type Float_Type is digits <>;
2525

26-
Maximum_Number_Length : Positive := 20;
26+
Maximum_Number_Length : Positive := 30;
2727
Default_Maximum_Depth : Positive := 10;
2828
package JSON.Types is
2929
pragma Preelaborate;

0 commit comments

Comments
 (0)