summaryrefslogtreecommitdiffstats
path: root/vendor/unicode-script/src/lib.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:11:38 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:12:43 +0000
commitcf94bdc0742c13e2a0cac864c478b8626b266e1b (patch)
tree044670aa50cc5e2b4229aa0b6b3df6676730c0a6 /vendor/unicode-script/src/lib.rs
parentAdding debian version 1.65.0+dfsg1-2. (diff)
downloadrustc-cf94bdc0742c13e2a0cac864c478b8626b266e1b.tar.xz
rustc-cf94bdc0742c13e2a0cac864c478b8626b266e1b.zip
Merging upstream version 1.66.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--vendor/unicode-script/src/lib.rs10
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,