Skip to content

Commit a3c2175

Browse files
byroothsbt
authored andcommitted
[ruby/json] Use smaller types for JSON_Parser boolean fields
ruby/json@7f079b25be
1 parent b1d417d commit a3c2175

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ext/json/parser/parser.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,17 @@ typedef struct JSON_ParserStruct {
1515
long len;
1616
char *memo;
1717
VALUE create_id;
18-
int max_nesting;
19-
int allow_nan;
20-
int parsing_name;
21-
int symbolize_names;
22-
int freeze;
2318
VALUE object_class;
2419
VALUE array_class;
2520
VALUE decimal_class;
26-
int create_additions;
2721
VALUE match_string;
2822
FBuffer *fbuffer;
23+
int max_nesting;
24+
char allow_nan;
25+
char parsing_name;
26+
char symbolize_names;
27+
char freeze;
28+
char create_additions;
2929
} JSON_Parser;
3030

3131
#define GET_PARSER \

0 commit comments

Comments
 (0)