diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:11:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:13:23 +0000 |
commit | 20431706a863f92cb37dc512fef6e48d192aaf2c (patch) | |
tree | 2867f13f5fd5437ba628c67d7f87309ccadcd286 /vendor/unicode-script/src/lib.rs | |
parent | Releasing progress-linux version 1.65.0+dfsg1-2~progress7.99u1. (diff) | |
download | rustc-20431706a863f92cb37dc512fef6e48d192aaf2c.tar.xz rustc-20431706a863f92cb37dc512fef6e48d192aaf2c.zip |
Merging upstream version 1.66.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/unicode-script/src/lib.rs')
-rw-r--r-- | vendor/unicode-script/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/vendor/unicode-script/src/lib.rs b/vendor/unicode-script/src/lib.rs index d650ee0b2..63f129069 100644 --- a/vendor/unicode-script/src/lib.rs +++ b/vendor/unicode-script/src/lib.rs @@ -144,20 +144,20 @@ pub struct ScriptExtension { // A bitset for the scripts 65-128 second: u64, // A bitset for scripts after 128 - third: u32, + third: u64, // Both Common and Inherited are represented by all used bits being set, // this flag lets us distinguish the two. common: bool, } impl ScriptExtension { - // We don't use the complete u32 of `third`, so the "all" value is not just u32::MAX + // We don't use the complete u64 of `third`, so the "all" value is not just u32::MAX // Instead, we take the number of the next (unused) script bit, subtract 128 to bring - // it in the range of `third`, create a u32 with just that bit set, and subtract 1 + // it in the range of `third`, create a u64 with just that bit set, and subtract 1 // to create one with all the lower bits set. - const THIRD_MAX: u32 = ((1 << (NEXT_SCRIPT - 128)) - 1); + const THIRD_MAX: u64 = ((1 << (NEXT_SCRIPT - 128)) - 1); - pub(crate) const fn new(first: u64, second: u64, third: u32) -> Self { + pub(crate) const fn new(first: u64, second: u64, third: u64) -> Self { ScriptExtension { first, second, |