aboutsummaryrefslogtreecommitdiff
path: root/std/debug/index.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2018-12-13 06:38:14 -0500
committerAndrew Kelley <andrew@ziglang.org>2018-12-13 06:38:14 -0500
commite98ba5fc4044cd84ab88b10cb8c88d765884462f (patch)
tree822dabd0323a9e061e351908bb314ce8dae1c1f9 /std/debug/index.zig
parent6395cf8d6b2cf585214a284039c16d6dc5ef5de3 (diff)
downloadzig-e98ba5fc4044cd84ab88b10cb8c88d765884462f.tar.gz
zig-e98ba5fc4044cd84ab88b10cb8c88d765884462f.zip
add mem.readVarInt, fix InStream.readVarInt, fix stack traces
fixes a regression from b883bc8
Diffstat (limited to 'std/debug/index.zig')
-rw-r--r--std/debug/index.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/debug/index.zig b/std/debug/index.zig
index 3967e5a8be..73c6ea7b56 100644
--- a/std/debug/index.zig
+++ b/std/debug/index.zig
@@ -1200,7 +1200,7 @@ const Constant = struct {
fn asUnsignedLe(self: *const Constant) !u64 {
if (self.payload.len > @sizeOf(u64)) return error.InvalidDebugInfo;
if (self.signed) return error.InvalidDebugInfo;
- return mem.readIntSliceLittle(u64, self.payload);
+ return mem.readVarInt(u64, self.payload, builtin.Endian.Little);
}
};