Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify int bitfield as signed int bitfield #7952

Merged
merged 1 commit into from
Jun 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ struct parser_params {
rb_parser_config_t *config;
#endif
/* compile_option */
int frozen_string_literal:2; /* -1: not specified, 0: false, 1: true */
int coverage_enabled:2; /* -1: not specified, 0: false, 1: true */
signed int frozen_string_literal:2; /* -1: not specified, 0: false, 1: true */
signed int coverage_enabled:2; /* -1: not specified, 0: false, 1: true */

unsigned int command_start:1;
unsigned int eofp: 1;
Expand Down
4 changes: 2 additions & 2 deletions rubyparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ typedef struct rb_ast_body_struct {
// script_lines is either:
// - a Fixnum that represents the line count of the original source, or
// - an Array that contains the lines of the original source
int frozen_string_literal:2; /* -1: not specified, 0: false, 1: true */
int coverage_enabled:2; /* -1: not specified, 0: false, 1: true */
signed int frozen_string_literal:2; /* -1: not specified, 0: false, 1: true */
signed int coverage_enabled:2; /* -1: not specified, 0: false, 1: true */
} rb_ast_body_t;
typedef struct rb_ast_struct {
VALUE flags;
Expand Down