summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-04 19:10:22 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-07-04 21:30:44 +0900
commit8ddfc177205d0b839cdce41435128dfcde2a1202 (patch)
tree390bfc8bb9d33d9685d4a9b5344a2b69141c221d /parse.y
parentab661556207046022860958d3c4f06bb289a7c97 (diff)
Use `uint_least32_t`
The elements of `ruby_global_name_punct_bits` table are 32-bit masks.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/8024
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index e09144748a..d0c6a28a85 100644
--- a/parse.y
+++ b/parse.y
@@ -7864,7 +7864,7 @@ flush_string_content(struct parser_params *p, rb_encoding *enc)
}
#endif
-RUBY_FUNC_EXPORTED const unsigned int ruby_global_name_punct_bits[(0x7e - 0x20 + 31) / 32];
+RUBY_FUNC_EXPORTED const uint_least32_t ruby_global_name_punct_bits[(0x7e - 0x20 + 31) / 32];
/* this can be shared with ripper, since it's independent from struct
* parser_params. */
#ifndef RIPPER
@@ -7876,7 +7876,7 @@ RUBY_FUNC_EXPORTED const unsigned int ruby_global_name_punct_bits[(0x7e - 0x20 +
BIT(':', idx) | BIT('<', idx) | BIT('>', idx) | BIT('\"', idx) | \
BIT('&', idx) | BIT('`', idx) | BIT('\'', idx) | BIT('+', idx) | \
BIT('0', idx))
-const unsigned int ruby_global_name_punct_bits[] = {
+const uint_least32_t ruby_global_name_punct_bits[] = {
SPECIAL_PUNCT(0),
SPECIAL_PUNCT(1),
SPECIAL_PUNCT(2),