summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/bio/bio.myr2
-rw-r--r--parse/gram.y6
2 files changed, 3 insertions, 5 deletions
diff --git a/lib/bio/bio.myr b/lib/bio/bio.myr
index e1b18a0..e56844a 100644
--- a/lib/bio/bio.myr
+++ b/lib/bio/bio.myr
@@ -61,7 +61,7 @@ pkg bio =
const flush : (f : file# -> bool)
/* seeking */
- const seek : (f : file#, std.off -> std.result(std.off, ioerr))
+ const seek : (f : file#, off : std.off -> std.result(std.off, ioerr))
/* single unit operations */
const putb : (f : file#, b : byte -> status(std.size))
diff --git a/parse/gram.y b/parse/gram.y
index dc91cb8..4693e38 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -979,12 +979,10 @@ matchstmt: Tmatch exprln optendlns Tbor matches Tendblk
matches : match {
$$.nl = NULL;
$$.nn = 0;
- if ($1)
- lappend(&$$.nl, &$$.nn, $1);
+ lappend(&$$.nl, &$$.nn, $1);
}
| matches Tbor match {
- if ($2)
- lappend(&$$.nl, &$$.nn, $3);
+ lappend(&$$.nl, &$$.nn, $3);
}
;