Mercurial > projects > ldc
comparison dmd/root.c @ 1111:0f8aeb31678c
Fix 32bit "+2" typo for Outbuffer::reserve
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Fri, 13 Mar 2009 07:17:29 -0600 |
parents | fd631764eaac |
children | c271eca933fb |
comparison
equal
deleted
inserted
replaced
1110:fd631764eaac | 1111:0f8aeb31678c |
---|---|
1392 if (size - offset < nbytes) | 1392 if (size - offset < nbytes) |
1393 { | 1393 { |
1394 #if defined (__x86_64__) | 1394 #if defined (__x86_64__) |
1395 size = (offset + nbytes) * 2 + 2; | 1395 size = (offset + nbytes) * 2 + 2; |
1396 #else | 1396 #else |
1397 size = (offset + nbytes) * 2 + 2; | 1397 size = (offset + nbytes) * 2; |
1398 #endif | 1398 #endif |
1399 data = (unsigned char *)mem.realloc(data, size); | 1399 data = (unsigned char *)mem.realloc(data, size); |
1400 } | 1400 } |
1401 } | 1401 } |
1402 | 1402 |