Skip to content

Commit

Permalink
Use smaller types for JSON_Parser boolean fields
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Oct 24, 2024
1 parent cecf04f commit 7f079b2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ext/json/ext/parser/parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ typedef struct JSON_ParserStruct {
long len;
char *memo;
VALUE create_id;
int max_nesting;
int allow_nan;
int parsing_name;
int symbolize_names;
int freeze;
VALUE object_class;
VALUE array_class;
VALUE decimal_class;
int create_additions;
VALUE match_string;
FBuffer *fbuffer;
int max_nesting;
char allow_nan;
char parsing_name;
char symbolize_names;
char freeze;
char create_additions;
} JSON_Parser;

#define GET_PARSER \
Expand Down

0 comments on commit 7f079b2

Please sign in to comment.