authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-05-01 06:49:30-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-05-01 06:49:30-04:00
log4044a77621f8104801304e3ffe74b55d17e6cbc2
tree77ff96ec2cf0d84f9f3ab4ccfbc932c81001bed7
parentb70e6da91458ab9007501ab50ec2b86adaf1d611

update std.meta.IntType => std.meta.Int


1 files changed, 3 insertions(+), 3 deletions(-)

lib/std/math/big/int.zig+3-3
...@@ -16,7 +16,7 @@ pub fn calcLimbLen(scalar: var) usize {...@@ -16,7 +16,7 @@ pub fn calcLimbLen(scalar: var) usize {
16 const T = @TypeOf(scalar);16 const T = @TypeOf(scalar);
17 switch (@typeInfo(T)) {17 switch (@typeInfo(T)) {
18 .Int => |info| {18 .Int => |info| {
19 const UT = if (info.is_signed) std.meta.IntType(false, info.bits - 1) else T;19 const UT = if (info.is_signed) std.meta.Int(false, info.bits - 1) else T;
20 return @sizeOf(UT) / @sizeOf(Limb);20 return @sizeOf(UT) / @sizeOf(Limb);
21 },21 },
22 .ComptimeInt => {22 .ComptimeInt => {
...@@ -174,7 +174,7 @@ pub const Mutable = struct {...@@ -174,7 +174,7 @@ pub const Mutable = struct {
174174
175 switch (@typeInfo(T)) {175 switch (@typeInfo(T)) {
176 .Int => |info| {176 .Int => |info| {
177 const UT = if (T.is_signed) std.meta.IntType(false, T.bit_count - 1) else T;177 const UT = if (T.is_signed) std.meta.Int(false, T.bit_count - 1) else T;
178178
179 const needed_limbs = @sizeOf(UT) / @sizeOf(Limb);179 const needed_limbs = @sizeOf(UT) / @sizeOf(Limb);
180 assert(needed_limbs <= self.limbs.len); // value too big180 assert(needed_limbs <= self.limbs.len); // value too big
...@@ -1009,7 +1009,7 @@ pub const Const = struct {...@@ -1009,7 +1009,7 @@ pub const Const = struct {
1009 pub fn to(self: Const, comptime T: type) ConvertError!T {1009 pub fn to(self: Const, comptime T: type) ConvertError!T {
1010 switch (@typeInfo(T)) {1010 switch (@typeInfo(T)) {
1011 .Int => {1011 .Int => {
1012 const UT = std.meta.IntType(false, T.bit_count);1012 const UT = std.meta.Int(false, T.bit_count);
10131013
1014 if (self.bitCountTwosComp() > T.bit_count) {1014 if (self.bitCountTwosComp() > T.bit_count) {
1015 return error.TargetTooSmall;1015 return error.TargetTooSmall;