diff options
author | yui-knk <[email protected]> | 2023-06-17 19:32:38 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2023-06-17 22:02:13 +0900 |
commit | d444f1b1fa69accf8723520195f431ed42dcceed (patch) | |
tree | 1c97ff745db557a790f1cb4a2d7ce9368ba2f27c | |
parent | 19c62b400d3458c4525f174515bcb616af7dfdfe (diff) |
Specify int bitfield as signed int bitfield
sunc treats int bitfield as unsigned int.
This commit will fix build failure on sunc.
* http://rubyci.s3.amazonaws.com/solaris10-sunc/ruby-master/log/20230617T100003Z.fail.html.gz
* http://rubyci.s3.amazonaws.com/solaris11-sunc/ruby-master/log/20230617T090011Z.fail.html.gz
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/7952
-rw-r--r-- | parse.y | 4 | ||||
-rw-r--r-- | rubyparser.h | 4 |
2 files changed, 4 insertions, 4 deletions
@@ -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; diff --git a/rubyparser.h b/rubyparser.h index ab70176fc4..5fbc1de340 100644 --- a/rubyparser.h +++ b/rubyparser.h @@ -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; |