mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-04-22 11:49:03 +02:00
Change custom allocator new size argument to size_t instead of uint. See #175.
This commit is contained in:
@@ -3617,8 +3617,8 @@ Lagain:
|
||||
|
||||
if (cd->aggNew)
|
||||
{
|
||||
// Prepend the uint size argument to newargs[]
|
||||
Expression *e = new IntegerExp(loc, cd->size(loc), Type::tuns32);
|
||||
// Prepend the size_t size argument to newargs[]
|
||||
Expression *e = new IntegerExp(loc, cd->size(loc), Type::tsize_t);
|
||||
if (!newargs)
|
||||
newargs = new Expressions();
|
||||
newargs->shift(e);
|
||||
|
||||
Reference in New Issue
Block a user