summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-06-26 01:00:42 -0400
committerOri Bernstein <ori@eigenstate.org>2014-06-26 01:00:42 -0400
commitc8604d93bbfcf27599c6936e80e04261eff73a9e (patch)
tree137e3542c115ae48794ee0e145e556f851a187af
parenta091675111887e72d0c910c8d64d97c1b5ae72a5 (diff)
downloadmc-c8604d93bbfcf27599c6936e80e04261eff73a9e.tar.gz
Fix slurp.
Type mismatch after read. I need to audit for types and make it consistent. Maybe size should be signed?
-rw-r--r--libstd/slurp.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstd/slurp.myr b/libstd/slurp.myr
index 016d068..4632adc 100644
--- a/libstd/slurp.myr
+++ b/libstd/slurp.myr
@@ -30,7 +30,7 @@ const slurp = {path
if n == 0
goto done
;;
- len += n
+ len += n castto(size)
buf = slgrow(buf, len + Bufinc)
;;
:done