summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mbld/util.myr4
-rw-r--r--test/fmtalign.myr2
2 files changed, 3 insertions, 3 deletions
diff --git a/mbld/util.myr b/mbld/util.myr
index 498d82d..443d127 100644
--- a/mbld/util.myr
+++ b/mbld/util.myr
@@ -53,7 +53,7 @@ const srcsplit = {src
platf = ""
suff = ""
- match std.strrfind(src, ".")
+ match std.strfind(src, ".")
| `std.Some i:
suff = src[i:]
src = src[:i]
@@ -86,7 +86,7 @@ const srcswapsuffix = {src, new
-> std.strcat(base, new)
elif std.hassuffix(suff, ".s")
-> std.strcat(base, new)
- elif std.hassuffix(suff, ".glue.c")
+ elif std.hassuffix(base, ".glue.c")
-> std.strjoin([base, ".glue", new][:], "")
else
std.fatal("unrecognized source {}\n", src)
diff --git a/test/fmtalign.myr b/test/fmtalign.myr
index 9ae3464..37b0564 100644
--- a/test/fmtalign.myr
+++ b/test/fmtalign.myr
@@ -12,6 +12,6 @@ pkg =
const main = {
var msg=`Tversion [.tag=45, .version="9P2000"]
- std.fmt("{}\n", msg)
+ std.put("{}\n", msg)
}