# HG changeset patch # User Kelly Wilson # Date 1236899424 21600 # Node ID fd631764eaac30903ff29cf3aca4fb9afcf9ca04 # Parent 97d80437cb8031ec6839c47d7bce7222f3a4405a 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. diff -r 97d80437cb80 -r fd631764eaac dmd/root.c --- a/dmd/root.c Thu Mar 12 23:48:43 2009 +0100 +++ b/dmd/root.c Thu Mar 12 17:10:24 2009 -0600 @@ -1391,7 +1391,11 @@ //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); } }