Skip to content

Commit 60657e5

Browse files
committed
Fix flag not constant
1 parent d83006c commit 60657e5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/yyjson.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -819,14 +819,14 @@ static const yyjson_read_flag YYJSON_READ_ALLOW_UNQUOTED_KEY = 1 << 13;
819819
- Unquoted keys are and not limited to ECMAScript IdentifierName.
820820
- The `Inf`, `Infinity` and `NaN` literals are case-insensitive. */
821821
static const yyjson_read_flag YYJSON_READ_JSON5 =
822-
YYJSON_READ_ALLOW_COMMENTS |
823-
YYJSON_READ_ALLOW_TRAILING_COMMAS |
824-
YYJSON_READ_ALLOW_INF_AND_NAN |
825-
YYJSON_READ_ALLOW_EXT_NUMBER |
826-
YYJSON_READ_ALLOW_EXT_ESCAPE |
827-
YYJSON_READ_ALLOW_EXT_WHITESPACE |
828-
YYJSON_READ_ALLOW_SINGLE_QUOTED_STR |
829-
YYJSON_READ_ALLOW_UNQUOTED_KEY;
822+
(1 << 2) | /* YYJSON_READ_ALLOW_TRAILING_COMMAS */
823+
(1 << 3) | /* YYJSON_READ_ALLOW_COMMENTS */
824+
(1 << 4) | /* YYJSON_READ_ALLOW_INF_AND_NAN */
825+
(1 << 9) | /* YYJSON_READ_ALLOW_EXT_NUMBER */
826+
(1 << 10) | /* YYJSON_READ_ALLOW_EXT_ESCAPE */
827+
(1 << 11) | /* YYJSON_READ_ALLOW_EXT_WHITESPACE */
828+
(1 << 12) | /* YYJSON_READ_ALLOW_SINGLE_QUOTED_STR */
829+
(1 << 13); /* YYJSON_READ_ALLOW_UNQUOTED_KEY */
830830

831831

832832

0 commit comments

Comments
 (0)