@@ -28,12 +28,12 @@ pub fn Advanced(comptime YearT: type, comptime epoch: Comptime, shift: comptime_
28
28
// These are used for math that should not overflow.
29
29
const UEpochDays = std .meta .Int (
30
30
.unsigned ,
31
- std .math .ceilPowerOfTwoAssert (u16 , @typeInfo (EpochDays ).Int .bits ),
31
+ std .math .ceilPowerOfTwoAssert (u16 , @typeInfo (EpochDays ).int .bits ),
32
32
);
33
- const IEpochDays = std .meta .Int (.signed , @typeInfo (UEpochDays ).Int .bits );
33
+ const IEpochDays = std .meta .Int (.signed , @typeInfo (UEpochDays ).int .bits );
34
34
const EpochDaysWide = std .meta .Int (
35
- @typeInfo (EpochDays ).Int .signedness ,
36
- @typeInfo (UEpochDays ).Int .bits ,
35
+ @typeInfo (EpochDays ).int .signedness ,
36
+ @typeInfo (UEpochDays ).int .bits ,
37
37
);
38
38
39
39
pub const zig_epoch_offset = epoch_mod .zig .daysUntil (epoch );
@@ -79,8 +79,8 @@ pub fn Advanced(comptime YearT: type, comptime epoch: Comptime, shift: comptime_
79
79
inline fn fromGregorian (date : Self ) Computational {
80
80
const month : UIntFitting (14 ) = date .month .numeric ();
81
81
const Widened = std .meta .Int (
82
- @typeInfo (Year ).Int .signedness ,
83
- @typeInfo (UEpochDays ).Int .bits ,
82
+ @typeInfo (Year ).int .signedness ,
83
+ @typeInfo (UEpochDays ).int .bits ,
84
84
);
85
85
const widened : Widened = date .year ;
86
86
const Y_G : UEpochDays = @bitCast (widened );
@@ -173,8 +173,8 @@ pub fn Advanced(comptime YearT: type, comptime epoch: Comptime, shift: comptime_
173
173
months : Duration.Months = 0 ,
174
174
days : Duration.Days = 0 ,
175
175
176
- pub const Days = std .meta .Int (.signed , @typeInfo (EpochDays ).Int .bits );
177
- pub const Months = std .meta .Int (.signed , @typeInfo (Duration .Days ).Int .bits - std .math .log2_int (u16 , 12 ));
176
+ pub const Days = std .meta .Int (.signed , @typeInfo (EpochDays ).int .bits );
177
+ pub const Months = std .meta .Int (.signed , @typeInfo (Duration .Days ).int .bits - std .math .log2_int (u16 , 12 ));
178
178
179
179
pub fn init (years : Year , months : Duration.Months , days : Duration.Days ) Duration {
180
180
return Duration { .years = years , .months = months , .days = days };
@@ -525,7 +525,7 @@ test solveShift {
525
525
}
526
526
527
527
fn ComptimeDiv (comptime Num : type , comptime divisor : comptime_int ) type {
528
- const info = @typeInfo (Num ).Int ;
528
+ const info = @typeInfo (Num ).int ;
529
529
return std .meta .Int (info .signedness , info .bits - std .math .log2 (divisor ));
530
530
}
531
531
0 commit comments