From 2a8fbb8feccbbc7535424795067a680f9dad2420 Mon Sep 17 00:00:00 2001 From: Darvis Date: Fri, 16 Jan 2026 12:56:58 +0530 Subject: [PATCH] Fix function signature for free to return void free expects a return type void* but it should return void instead of void* --- lib/std/libc/libc.c3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/libc/libc.c3 b/lib/std/libc/libc.c3 index 7da66cdcd..0dd6c14ec 100644 --- a/lib/std/libc/libc.c3 +++ b/lib/std/libc/libc.c3 @@ -100,7 +100,7 @@ extern fn CInt fprintf(CFile stream, ZString format, ...); extern fn CInt fputc(CInt c, CFile stream); extern fn CInt fputs(ZString string, CFile stream); extern fn usz fread(void* ptr, usz size, usz nmemb, CFile stream); -extern fn void* free(void*); +extern fn void free(void*); extern fn CFile freopen(ZString filename, ZString mode, CFile stream); extern fn CInt fscanf(CFile stream, ZString format, ...); extern fn CInt fseek(CFile stream, SeekIndex offset, CInt whence) @if(!env::WIN32);