From f626421bc4f526c48b789914a3a1e088a9250278 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 7 Feb 2021 10:52:04 -0800 Subject: 7692 It's bad enough that metadata comments are restricted to integer literals; let's at least make them work on _all_ integer literals. --- apps/tile/gap-buffer.mu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/tile') diff --git a/apps/tile/gap-buffer.mu b/apps/tile/gap-buffer.mu index b5a690ec..0132daf0 100644 --- a/apps/tile/gap-buffer.mu +++ b/apps/tile/gap-buffer.mu @@ -14,7 +14,7 @@ fn initialize-gap-buffer _self: (addr gap-buffer) { # just for tests fn initialize-gap-buffer-with self: (addr gap-buffer), s: (addr array byte) { initialize-gap-buffer self - var stream-storage: (stream byte 0x10) # max-word-size + var stream-storage: (stream byte 0x10/max-word-size) var stream/ecx: (addr stream byte) <- address stream-storage write stream, s { @@ -238,7 +238,7 @@ fn gap-buffer-equal? _self: (addr gap-buffer), s: (addr array byte) -> _/eax: bo # complication: graphemes may be multiple bytes # so don't rely on length # instead turn the expected result into a stream and arrange to read from it in order - var stream-storage: (stream byte 0x10) # max-word-size + var stream-storage: (stream byte 0x10/max-word-size) var expected-stream/ecx: (addr stream byte) <- address stream-storage write expected-stream, s # compare left -- cgit 1.4.1-2-gfad0