From e56075fb4684859ad2a78a2c314a230de4ba31ad Mon Sep 17 00:00:00 2001 From: apio Date: Fri, 16 Dec 2022 20:36:43 +0100 Subject: [PATCH] Use nothrow in raw_malloc --- luna/src/Alloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/luna/src/Alloc.cpp b/luna/src/Alloc.cpp index 105f4ac9..57ec3eb7 100644 --- a/luna/src/Alloc.cpp +++ b/luna/src/Alloc.cpp @@ -7,7 +7,7 @@ [[nodiscard]] void* raw_malloc(usize size) { #ifdef USE_FREESTANDING - char* const rc = new char[size]; + char* const rc = new (std::nothrow) char[size]; return (void*)rc; #else return malloc(size);