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:
Kelly Wilson
2009-03-12 17:10:24 -06:00
parent 8b185b8b6a
commit ff33ed6d74

View File

@@ -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);
}
}