From 7e65fe7ac36076d0d34a530afd63a68d2eac3486 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 4 Jan 2018 16:36:59 -0500 Subject: fix test regressions on windows from previous commit --- std/os/index.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std') diff --git a/std/os/index.zig b/std/os/index.zig index 952108ffcc..8ebd586475 100644 --- a/std/os/index.zig +++ b/std/os/index.zig @@ -1573,7 +1573,7 @@ pub fn selfExePath(allocator: &mem.Allocator) -> %[]u8 { out_path.shrink(copied_amt); return out_path.toOwnedSlice(); } - const new_len = (%return math.shlExact(out_path.len(), 1)) | 0b1; + const new_len = (out_path.len() << 1) | 0b1; %return out_path.resize(new_len); } }, -- cgit v1.2.3