mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-13 19:33:13 +01:00
Revert removal of "+2" from Outbuffer::reserve function for x64. Unless
somone can fix this properly, then the "+2" must stay in or tango won't build.
This commit is contained in:
@@ -1391,7 +1391,11 @@ void OutBuffer::reserve(unsigned nbytes)
|
||||
//printf("OutBuffer::reserve: size = %d, offset = %d, nbytes = %d\n", size, offset, nbytes);
|
||||
if (size - offset < nbytes)
|
||||
{
|
||||
size = (offset + nbytes) * 2;
|
||||
#if defined (__x86_64__)
|
||||
size = (offset + nbytes) * 2 + 2;
|
||||
#else
|
||||
size = (offset + nbytes) * 2 + 2;
|
||||
#endif
|
||||
data = (unsigned char *)mem.realloc(data, size);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user