aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-01-04 16:36:59 -0500
committerAndrew Kelley <superjoe30@gmail.com>2018-01-04 16:36:59 -0500
commit7e65fe7ac36076d0d34a530afd63a68d2eac3486 (patch)
tree4c32e7697b2f68dffad9e9cb9b784e048b5ec71b /std
parentd008e209e7446311bda1b555284978dfabb91308 (diff)
downloadzig-7e65fe7ac36076d0d34a530afd63a68d2eac3486.tar.gz
zig-7e65fe7ac36076d0d34a530afd63a68d2eac3486.zip
fix test regressions on windows from previous commit
Diffstat (limited to 'std')
-rw-r--r--std/os/index.zig2
1 files changed, 1 insertions, 1 deletions
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);
}
},