summaryrefslogtreecommitdiff
path: root/include/ruby/internal
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2025-12-31 21:40:16 +0900
committergit <svn-admin@ruby-lang.org>2025-12-31 12:44:18 +0000
commit99249cc582177f05baf2a9c45e3fa21b891c70e9 (patch)
treee8abe2fe580a3d47916055c1af1c4bcb77a1e7ee /include/ruby/internal
parentc97f5d591b17b8194b8ddfccc6fb9d94b66c6bce (diff)
[ruby/json] Fix non-portable code
A plain `char` may be `signed` or `unsigned` depending on the implementation. Also, bitwise ORing of `signed` values ​​is not guaranteed to be `signed`. To ensure portability, should logical-OR each comparison, but casting to `signed char` is usually sufficient. https://github.com/ruby/json/commit/8ad744c532
Diffstat (limited to 'include/ruby/internal')
0 files changed, 0 insertions, 0 deletions