summaryrefslogtreecommitdiffstats
path: root/util/system/sys_alloc.h
diff options
context:
space:
mode:
authorthegeorg <[email protected]>2022-02-10 16:45:08 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:08 +0300
commit4e839db24a3bbc9f1c610c43d6faaaa99824dcca (patch)
tree506dac10f5df94fab310584ee51b24fc5a081c22 /util/system/sys_alloc.h
parent2d37894b1b037cf24231090eda8589bbb44fb6fc (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/sys_alloc.h')
-rw-r--r--util/system/sys_alloc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/system/sys_alloc.h b/util/system/sys_alloc.h
index 4221a28f8cc..3d496ed4f4f 100644
--- a/util/system/sys_alloc.h
+++ b/util/system/sys_alloc.h
@@ -3,13 +3,13 @@
#include <util/system/compiler.h>
#include <cstdlib>
-#include <new>
+#include <new>
inline void* y_allocate(size_t n) {
void* r = malloc(n);
if (r == nullptr) {
- throw std::bad_alloc();
+ throw std::bad_alloc();
}
return r;
@@ -36,7 +36,7 @@ inline void* y_reallocate(void* p, size_t new_sz) {
void* r = realloc(p, new_sz);
if (r == nullptr) {
- throw std::bad_alloc();
+ throw std::bad_alloc();
}
return r;