aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug
diff options
context:
space:
mode:
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;