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);