aboutsummaryrefslogtreecommitdiff
path: root/src/compile.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/compile.zig')
-rw-r--r--src/compile.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile.zig b/src/compile.zig
index ad5fc59..c723842 100644
--- a/src/compile.zig
+++ b/src/compile.zig
@@ -102,7 +102,7 @@ const CompileContext = struct {
switch (expr.type) {
.integer_literal => try addInstr(self, .{
.loc = expr.loc,
- .type = .{ .constant = .{ .dest = dest, .value = expr.getInt(self.source) } },
+ .type = .{ .constant = .{ .dest = dest, .value = expr.loc.getInt(self.source) } },
}),
.bin_op => |binop| {
const lhs = try self.compileExpr(binop.lhs);