fix gcc build error

This commit is contained in:
Matthias Hochsteger 2021-09-03 13:12:17 +02:00
parent 467d0e5663
commit 42faaacdb7

View File

@ -163,7 +163,7 @@ public:
} }
/// allocates size bytes of memory from local heap /// allocates size bytes of memory from local heap
NETGEN_INLINE void * Alloc (size_t size) final // throw (LocalHeapOverflow) void * Alloc (size_t size) final // throw (LocalHeapOverflow)
{ {
char * oldp = p; char * oldp = p;
@ -181,7 +181,7 @@ public:
/// allocates size objects of type T on local heap /// allocates size objects of type T on local heap
template <typename T> template <typename T>
NETGEN_INLINE T * Alloc (size_t size) // throw (LocalHeapOverflow) T * Alloc (size_t size) // throw (LocalHeapOverflow)
{ {
char * oldp = p; char * oldp = p;
size *= sizeof (T); size *= sizeof (T);