diff options
author | yui-knk <spiketeika@gmail.com> | 2023-06-17 19:32:38 +0900 |
---|---|---|
committer | Yuichiro Kaneko <spiketeika@gmail.com> | 2023-06-17 22:02:13 +0900 |
commit | d444f1b1fa69accf8723520195f431ed42dcceed (patch) | |
tree | 1c97ff745db557a790f1cb4a2d7ce9368ba2f27c /rubyparser.h | |
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
Diffstat (limited to 'rubyparser.h')
-rw-r--r-- | rubyparser.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; |