hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit fa62f834af4add2b1431f15bf68888d3f278bb9c
parent 72ad4065cac0d5c4e8f82ad5d41087c190e8021b
Author: lunacb <lunacb@disroot.org>
Date:   Thu,  4 Apr 2024 23:13:59 -0400

Make glob::strerror's buffer static

Signed-off-by: lunacb <lunacb@disroot.org>

Diffstat:
Mglob/glob.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/glob/glob.ha b/glob/glob.ha @@ -58,7 +58,7 @@ export type failure = !struct { // Converts an error info a human-friendly string. The result is statically // allocated. export fn strerror(err: failure) str = { - let buf: [path::MAX + 1024]u8 = [0...]; + static let buf: [path::MAX + 1024]u8 = [0...]; return fmt::bsprintf(buf, "{}: {}", err.path, fs::strerror(err.error)); };