aboutsummaryrefslogtreecommitdiff
path: root/std/debug.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-08-27 00:28:17 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-08-27 00:28:17 -0400
commitb59aa7b906c984f182b8abc8fd3e146d956a799d (patch)
tree1bf098cca4430b8afda2ab0086b48494ad381636 /std/debug.zig
parent29a418c9d5b3b9c78b707e5b6a119d48ecce9a6a (diff)
downloadzig-b59aa7b906c984f182b8abc8fd3e146d956a799d.tar.gz
zig-b59aa7b906c984f182b8abc8fd3e146d956a799d.zip
fixups to linux build
Diffstat (limited to 'std/debug.zig')
-rw-r--r--std/debug.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/std/debug.zig b/std/debug.zig
index 922a72e11c..6d7138a551 100644
--- a/std/debug.zig
+++ b/std/debug.zig
@@ -721,7 +721,8 @@ fn getLineNumberInfo(st: &ElfStackTrace, compile_unit: &const CompileUnit, targe
});
},
else => {
- %return in_stream.seekForward(op_size - 1);
+ const fwd_amt = math.cast(isize, op_size - 1) %% return error.InvalidDebugInfo;
+ %return in_stream.seekForward(fwd_amt);
},
}
} else if (opcode >= opcode_base) {