diff options
author | Nathan Froyd <froydnj@gmail.com> | 2023-09-13 20:24:22 -0400 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-09-14 01:09:33 +0000 |
commit | e50fcca9a79d8e25b33ad3611df6bf4627faafbf (patch) | |
tree | 60dbc49e49c6c60bc8cee1f1b2913786b4426f9e /yarp/enc/yp_encoding.h | |
parent | f644996f2e6d41e9c3d2aeda326bb81d1bdf32d0 (diff) |
[ruby/yarp] make some encoding tables `const`v3_3_0_preview2
https://github.com/ruby/yarp/commit/777c376deb
Diffstat (limited to 'yarp/enc/yp_encoding.h')
-rw-r--r-- | yarp/enc/yp_encoding.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yarp/enc/yp_encoding.h b/yarp/enc/yp_encoding.h index 9e8e7e01f6..d8563bd54a 100644 --- a/yarp/enc/yp_encoding.h +++ b/yarp/enc/yp_encoding.h @@ -60,7 +60,7 @@ size_t yp_encoding_utf_8_alnum_char(const uint8_t *b, ptrdiff_t n); // This lookup table is referenced in both the UTF-8 encoding file and the // parser directly in order to speed up the default encoding processing. -extern uint8_t yp_encoding_unicode_table[256]; +extern const uint8_t yp_encoding_unicode_table[256]; // These are the encodings that are supported by the parser. They are defined in // their own files in the src/enc directory. |