aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug
diff options
context:
space:
mode:
authorTadeo Kondrak <me@tadeo.ca>2020-04-28 19:10:09 -0600
committerTadeo Kondrak <me@tadeo.ca>2020-04-28 19:11:31 -0600
commit350b2adacda217014dc511ccc4cd73f22ddaac22 (patch)
tree519115799840c1abe4be6aa708a3ca5079fbd817 /lib/std/debug
parenteb183ad9febef775efabb1a4592f84d6cf088c28 (diff)
downloadzig-350b2adacda217014dc511ccc4cd73f22ddaac22.tar.gz
zig-350b2adacda217014dc511ccc4cd73f22ddaac22.zip
std.meta.IntType -> std.meta.Int
Diffstat (limited to 'lib/std/debug')
-rw-r--r--lib/std/debug/leb128.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/std/debug/leb128.zig b/lib/std/debug/leb128.zig
index e2157335b5..ac278c4b1f 100644
--- a/lib/std/debug/leb128.zig
+++ b/lib/std/debug/leb128.zig
@@ -2,7 +2,7 @@ const std = @import("std");
const testing = std.testing;
pub fn readULEB128(comptime T: type, in_stream: var) !T {
- const ShiftT = std.meta.IntType(false, std.math.log2(T.bit_count));
+ const ShiftT = std.meta.Int(false, std.math.log2(T.bit_count));
var result: T = 0;
var shift: usize = 0;
@@ -27,7 +27,7 @@ pub fn readULEB128(comptime T: type, in_stream: var) !T {
}
pub fn readULEB128Mem(comptime T: type, ptr: *[*]const u8) !T {
- const ShiftT = std.meta.IntType(false, std.math.log2(T.bit_count));
+ const ShiftT = std.meta.Int(false, std.math.log2(T.bit_count));
var result: T = 0;
var shift: usize = 0;
@@ -55,8 +55,8 @@ pub fn readULEB128Mem(comptime T: type, ptr: *[*]const u8) !T {
}
pub fn readILEB128(comptime T: type, in_stream: var) !T {
- const UT = std.meta.IntType(false, T.bit_count);
- const ShiftT = std.meta.IntType(false, std.math.log2(T.bit_count));
+ const UT = std.meta.Int(false, T.bit_count);
+ const ShiftT = std.meta.Int(false, std.math.log2(T.bit_count));
var result: UT = 0;
var shift: usize = 0;
@@ -87,8 +87,8 @@ pub fn readILEB128(comptime T: type, in_stream: var) !T {
}
pub fn readILEB128Mem(comptime T: type, ptr: *[*]const u8) !T {
- const UT = std.meta.IntType(false, T.bit_count);
- const ShiftT = std.meta.IntType(false, std.math.log2(T.bit_count));
+ const UT = std.meta.Int(false, T.bit_count);
+ const ShiftT = std.meta.Int(false, std.math.log2(T.bit_count));
var result: UT = 0;
var shift: usize = 0;