diff options
author | yui-knk <[email protected]> | 2024-06-25 11:38:06 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2024-06-26 07:48:43 +0900 |
commit | 4fb7e1b6d0160322b3cbcdd67c544f2e9ff56bed () | |
tree | 50572608859771f302a505cbef207d3e183ca613 /rubyparser.h | |
parent | a47c152ab50900a9164d67612ad2b321a2668c3a (diff) |
Change `enum rb_parser_ary_data_type` default value to 1 for easy debug
We face `[BUG] unexpected rb_parser_ary_data_type (0) for script lines` on master branch recently. This commit changes `enum rb_parser_ary_data_type` to start with `1` and `0` to be invalid then it makes clear `rb_parser_ary_data_type (0)` is not intentional.
-rw-r--r-- | rubyparser.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -224,7 +224,7 @@ typedef struct rb_parser_ast_token { typedef void* rb_parser_ary_data; enum rb_parser_ary_data_type { - PARSER_ARY_DATA_AST_TOKEN, PARSER_ARY_DATA_SCRIPT_LINE }; |