From 3ea974dd51b1f01483bad6a4d115189928bbf4db Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Mon, 23 Jun 2025 15:16:00 -0400 Subject: Buffer API refactor, C++ compat - Add common_close() to tests. Signed-off-by: Andrew Opalach --- src/util/file/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/file') diff --git a/src/util/file/util.c b/src/util/file/util.c index cf2d31c..a2201a7 100644 --- a/src/util/file/util.c +++ b/src/util/file/util.c @@ -15,7 +15,7 @@ s32 nn_file_read_as_str(struct nn_file *file, str *out) s32 nn_file_read_as_c_str(struct nn_file *file, char **out) { size_t size = file->size; - *out = al_malloc(size + 1); + *out = (char *)al_malloc(size + 1); if (!nn_file_read(file, (void *)*out, size)) { al_free(*out); return -1; -- cgit v1.2.3-101-g0448