Skip to content

Commit

Permalink
Merge pull request #167 from danielaparker/master
Browse files Browse the repository at this point in the history
Parameter of get_enc_table_with_flag is json_read_flag, should be json_write_flag
  • Loading branch information
ibireme authored May 7, 2024
2 parents b21c029 + 09caffe commit cebc072
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/yyjson.c
Original file line number Diff line number Diff line change
Expand Up @@ -7835,7 +7835,7 @@ static const u8 esc_single_char_table[512] = {

/** Returns the encode table with options. */
static_inline const char_enc_type *get_enc_table_with_flag(
yyjson_read_flag flg) {
yyjson_write_flag flg) {
if (has_write_flag(ESCAPE_UNICODE)) {
if (has_write_flag(ESCAPE_SLASHES)) {
return enc_table_esc_slash;
Expand Down

0 comments on commit cebc072

Please sign in to comment.