about summary refs log tree commit diff stats
path: root/apps/tile
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2021-02-07 10:52:04 -0800
committerKartik Agaram <vc@akkartik.com>2021-02-07 10:52:04 -0800
commitf626421bc4f526c48b789914a3a1e088a9250278 (patch)
tree578b7f37c5477d66fa3b470b740aff3068bfd7dd /apps/tile
parent5268b0e1df434e267b365e931fead9caa151c54b (diff)
downloadmu-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.mu4
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