harec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 446d4ef593a078612ca8bc3d7d25fbeacec03aee
parent 41330a3aaac62c36f78b58d2cd87007ed18e62e3
Author: Drew DeVault <sir@cmpwn.com>
Date:   Thu, 11 Feb 2021 12:11:29 -0500

rt::compile: use length inferred array

Diffstat:
Mrt/compile.ha | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/rt/compile.ha b/rt/compile.ha @@ -12,8 +12,8 @@ export fn compile(src: const str) int = { close(2); const path = "./harec"; - const argv: [3]nullable *const char = [path, "-", null]; - const envp: [1]nullable *const char = [null]; + const argv: [_]nullable *const char = [path, "-", null]; + const envp: [_]nullable *const char = [null]; execve(path, &argv, &envp); abort(); } else {