Commit e8a02204 authored by Eli Zaretskii's avatar Eli Zaretskii

Really fix bug #11519, by fixing the last change in ralloc.c.

 src/ralloc.c (r_alloc_inhibit_buffer_relocation): Fix stupid thinko
 in the logic of incrementing and decrementing the value of
 use_relocatable_buffers.
parent 0e9e6c6a
2012-06-23 Eli Zaretskii <eliz@gnu.org>
* ralloc.c (r_alloc_inhibit_buffer_relocation): Fix stupid thinko
in the logic of incrementing and decrementing the value of
use_relocatable_buffers.
2012-06-23 Paul Eggert <eggert@cs.ucla.edu>
* sysdep.c [__FreeBSD__]: Fix recently-introduced typos.
......
......@@ -741,7 +741,7 @@ r_alloc_sbrk (long int size)
if (! r_alloc_initialized)
r_alloc_init ();
if (! use_relocatable_buffers)
if (use_relocatable_buffers <= 0)
return (*real_morecore) (size);
if (size == 0)
......@@ -1142,12 +1142,12 @@ r_alloc_reset_variable (POINTER *old, POINTER *new)
void
r_alloc_inhibit_buffer_relocation (int inhibit)
{
if (use_relocatable_buffers < 0)
use_relocatable_buffers = 0;
if (use_relocatable_buffers > 1)
use_relocatable_buffers = 1;
if (inhibit)
use_relocatable_buffers++;
else if (use_relocatable_buffers > 0)
use_relocatable_buffers--;
else if (use_relocatable_buffers < 1)
use_relocatable_buffers++;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment