summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2023-02-10 13:27:50 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2023-02-10 13:27:50 -0400
commitcf8972948066c859a9024ffe81afa95156972c53 (patch)
tree4ee33b08c65f074390f920fa7624ccf395c59666 /include
parent3854713b26eddd08bacd51e6c6b85bba4d9a7c2d (diff)
TObject: Implement, and match `alloc()`, and `free()`
Diffstat (limited to 'include')
-rw-r--r--include/pso/TObject.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/pso/TObject.h b/include/pso/TObject.h
index c851480..3a9f097 100644
--- a/include/pso/TObject.h
+++ b/include/pso/TObject.h
@@ -3,6 +3,7 @@
#include "pso/forward.h"
#include "pso/macros.h"
+#include <stdlib.h>
#include <global_types.h>
#define o(name) extern const char *name##_name;
@@ -66,7 +67,7 @@ public:
TObject(TObject *parent = NULL);
virtual ~TObject();
- void *operator new (unsigned long size) { return alloc(size); };
+ void *operator new (size_t size) { return alloc(size); };
void operator delete(void *ptr) { free(ptr); };
void delete_children();