about summary refs log tree commit diff stats
path: root/404stream.mu
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2020-08-28 22:04:12 -0700
committerKartik Agaram <vc@akkartik.com>2020-08-28 22:04:12 -0700
commit34ac52cb437a0b15b78a887c9f14857af06961a9 (patch)
treef4b781c3eb0341f591d5ad4301930760bd8556b5 /404stream.mu
parentddea9a73e28b07bca6da9e5dc0a099527b590dec (diff)
downloadmu-34ac52cb437a0b15b78a887c9f14857af06961a9.tar.gz
6730
Diffstat (limited to '404stream.mu')
-rw-r--r--404stream.mu4
1 files changed, 2 insertions, 2 deletions
diff --git a/404stream.mu b/404stream.mu
index bf4ae883..d0120046 100644
--- a/404stream.mu
+++ b/404stream.mu
@@ -4,7 +4,7 @@ fn test-stream {
   # - write an int to a stream, then read it back
   # step 1: initialize
   var s: (stream int 4)
-  var s2/ecx: (addr stream int 4) <- address s
+  var s2/ecx: (addr stream int) <- address s
   var tmp/eax: boolean <- stream-empty? s2
   check-true tmp, "F - test-stream/empty?/0"
   tmp <- stream-full? s2
@@ -35,7 +35,7 @@ fn test-stream {
 fn test-stream-full {
   # write an int to a stream of capacity 1
   var s: (stream int 1)
-  var s2/ecx: (addr stream int 1) <- address s
+  var s2/ecx: (addr stream int) <- address s
   var tmp/eax: boolean <- stream-full? s2
   check-false tmp, "F - test-stream-full?/pre"
   var x: int