diff options
author | Kartik Agaram <vc@akkartik.com> | 2021-02-07 10:52:04 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2021-02-07 10:52:04 -0800 |
commit | f626421bc4f526c48b789914a3a1e088a9250278 (patch) | |
tree | 578b7f37c5477d66fa3b470b740aff3068bfd7dd /apps/tile | |
parent | 5268b0e1df434e267b365e931fead9caa151c54b (diff) | |
download | mu-f626421bc4f526c48b789914a3a1e088a9250278.tar.gz |
7692
It's bad enough that metadata comments are restricted to integer literals; let's at least make them work on _all_ integer literals.
Diffstat (limited to 'apps/tile')
-rw-r--r-- | apps/tile/gap-buffer.mu | 4 |
1 files changed, 2 insertions, 2 deletions
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 |