@@ -144,20 +144,20 @@ pub struct ScriptExtension {
144144// A bitset for the scripts 65-128
145145second : u64 ,
146146// A bitset for scripts after 128
147- third : u32 ,
147+ third : u64 ,
148148// Both Common and Inherited are represented by all used bits being set,
149149// this flag lets us distinguish the two.
150150common : bool ,
151151}
152152
153153impl ScriptExtension {
154- // We don't use the completeu32 of `third`, so the "all" value is not just u32::MAX
154+ // We don't use the completeu64 of `third`, so the "all" value is not just u32::MAX
155155// Instead, we take the number of the next (unused) script bit, subtract 128 to bring
156- // it in the range of `third`, create au32 with just that bit set, and subtract 1
156+ // it in the range of `third`, create au64 with just that bit set, and subtract 1
157157// to create one with all the lower bits set.
158- const THIRD_MAX : u32 =( ( 1 <<( NEXT_SCRIPT -128 ) ) -1 ) ;
158+ const THIRD_MAX : u64 =( ( 1 <<( NEXT_SCRIPT -128 ) ) -1 ) ;
159159
160- pub ( crate ) const fn new ( first : u64 , second : u64 , third : u32 ) ->Self {
160+ pub ( crate ) const fn new ( first : u64 , second : u64 , third : u64 ) ->Self {
161161ScriptExtension {
162162 first,
163163 second,