File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -144,20 +144,20 @@ pub struct ScriptExtension {
144
144
// A bitset for the scripts 65-128
145
145
second : u64 ,
146
146
// A bitset for scripts after 128
147
- third : u32 ,
147
+ third : u64 ,
148
148
// Both Common and Inherited are represented by all used bits being set,
149
149
// this flag lets us distinguish the two.
150
150
common : bool ,
151
151
}
152
152
153
153
impl ScriptExtension {
154
- // We don't use the complete u32 of `third`, so the "all" value is not just u32::MAX
154
+ // We don't use the complete u64 of `third`, so the "all" value is not just u32::MAX
155
155
// Instead, we take the number of the next (unused) script bit, subtract 128 to bring
156
- // it in the range of `third`, create a u32 with just that bit set, and subtract 1
156
+ // it in the range of `third`, create a u64 with just that bit set, and subtract 1
157
157
// 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 ) ;
159
159
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 {
161
161
ScriptExtension {
162
162
first,
163
163
second,
You can’t perform that action at this time.
0 commit comments