From 20431706a863f92cb37dc512fef6e48d192aaf2c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:11:38 +0200 Subject: Merging upstream version 1.66.0+dfsg1. Signed-off-by: Daniel Baumann --- vendor/unicode-script/src/lib.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'vendor/unicode-script/src/lib.rs') 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, -- cgit v1.2.3