From a7b9345f1448bb216b7a5c1fbf9bee5734682a5e Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Fri, 10 Feb 2023 14:21:46 -0400 Subject: TObject: Correct some minor stuff --- include/pso/TObject.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/pso/TObject.h b/include/pso/TObject.h index b224225..8d3e6e8 100644 --- a/include/pso/TObject.h +++ b/include/pso/TObject.h @@ -34,6 +34,7 @@ enum object_flags { BIT_15 = 0x8000, ALL_BITS = 0xFFFF }; + static inline object_flags operator^(object_flags a, object_flags b) { return static_cast(static_cast(a) ^ static_cast(b)); }; static inline object_flags operator&(object_flags a, object_flags b) { return static_cast(static_cast(a) & static_cast(b)); }; static inline object_flags operator|(object_flags a, object_flags b) { return static_cast(static_cast(a) | static_cast(b)); }; @@ -89,7 +90,7 @@ public: void log(const char *str); int get_node_count(); bool all_parents_unqueued_for_destruction(); - static void *alloc(unsigned long size); + static void *alloc(size_t size); static void free(void *ptr); bool toggle_flag_9_if_flag_10_is_clear(); -- cgit v1.2.3-13-gbd6f