aboutsummaryrefslogtreecommitdiff
path: root/src/link/Wasm.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-07-24 11:50:10 -0700
committerAndrew Kelley <andrew@ziglang.org>2022-07-24 11:50:10 -0700
commit934573fc5db1307caf559cc485e0e557a7c655e2 (patch)
tree2e62419f306e5f77c7787a88dbc2c56c46f0f14e /src/link/Wasm.zig
parenta08b0fa706f79a506b219d59a0b58a6d5761dcd7 (diff)
downloadzig-934573fc5db1307caf559cc485e0e557a7c655e2.tar.gz
zig-934573fc5db1307caf559cc485e0e557a7c655e2.zip
Revert "std.fmt: require specifier for unwrapping ?T and E!T."
This reverts commit 7cbd586ace46a8e8cebab660ebca3cfc049305d9. This is causing a fail to build from source: ``` ./lib/std/fmt.zig:492:17: error: cannot format optional without a specifier (i.e. {?} or {any}) @compileError("cannot format optional without a specifier (i.e. {?} or {any})"); ^ ./src/link/MachO/Atom.zig:544:26: note: called from here log.debug(" RELA({s}) @ {x} => %{d} in object({d})", .{ ^ ``` I looked at the code to fix it but none of those args are optionals.
Diffstat (limited to 'src/link/Wasm.zig')
-rw-r--r--src/link/Wasm.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/Wasm.zig b/src/link/Wasm.zig
index 30e2192268..41ee8392ec 100644
--- a/src/link/Wasm.zig
+++ b/src/link/Wasm.zig
@@ -1629,7 +1629,7 @@ fn setupMemory(self: *Wasm) !void {
return error.MemoryTooBig;
}
self.memories.limits.max = @intCast(u32, max_memory / page_size);
- log.debug("Maximum memory pages: {?d}", .{self.memories.limits.max});
+ log.debug("Maximum memory pages: {d}", .{self.memories.limits.max});
}
}