From 62132ecc8d032ef251d6b54177414a9ba29e8610 Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 13 Aug 2022 07:27:37 +0200 Subject: fix cgen cond --- src/all.hff | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/all.hff') diff --git a/src/all.hff b/src/all.hff index 895657a..f15df13 100644 --- a/src/all.hff +++ b/src/all.hff @@ -133,3 +133,7 @@ fn bswap64(x u64) u64 { return (as(u64)bswap32(x) << 32) | (bswap32(x >> 32)); } + +fn spanz(x *const u8) [#]const u8 { + return x[0::strlen(x)]; +} -- cgit v1.2.3