Skip to content

Commit b956ae2

Browse files
committed
frontend: align those stdio buffers
1 parent 8489bab commit b956ae2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ pub fn wasi_cwd() std.os.wasi.fd_t {
6666
const fatal = std.process.fatal;
6767

6868
/// This can be global since stdin is a singleton.
69-
var stdin_buffer: [4096]u8 = undefined;
69+
var stdin_buffer: [4096]u8 align(std.heap.page_size_min) = undefined;
7070
/// This can be global since stdout is a singleton.
71-
var stdout_buffer: [4096]u8 = undefined;
71+
var stdout_buffer: [4096]u8 align(std.heap.page_size_min) = undefined;
7272

7373
/// Shaming all the locations that inappropriately use an O(N) search algorithm.
7474
/// Please delete this and fix the compilation errors!

0 commit comments

Comments
 (0)