aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-11-07 18:52:09 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-11-08 15:57:25 -0500
commitaa0daea5415dd2a20e4d7c2fd047b7bcee6c9ea4 (patch)
treeb8634d38380eb6fd32ca614678785f36167ca7b2 /lib/std/debug
parenta2acc2787242fdee189ec4197c0dd847b8245139 (diff)
downloadzig-aa0daea5415dd2a20e4d7c2fd047b7bcee6c9ea4.tar.gz
zig-aa0daea5415dd2a20e4d7c2fd047b7bcee6c9ea4.zip
update more of the std lib to use `@as`
Diffstat (limited to 'lib/std/debug')
-rw-r--r--lib/std/debug/leb128.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug/leb128.zig b/lib/std/debug/leb128.zig
index ee1d1ac9ee..dba57e1f97 100644
--- a/lib/std/debug/leb128.zig
+++ b/lib/std/debug/leb128.zig
@@ -101,7 +101,7 @@ pub fn readILEB128Mem(comptime T: type, ptr: *[*]const u8) !T {
return error.Overflow;
var operand: UT = undefined;
- if (@shlWithOverflow(UT, UT(byte & 0x7f), @intCast(ShiftT, shift), &operand)) {
+ if (@shlWithOverflow(UT, @as(UT, byte & 0x7f), @intCast(ShiftT, shift), &operand)) {
if (byte != 0x7f)
return error.Overflow;
}