diff options
author | Eli Zaretskii <eliz@gnu.org> | 2012-06-23 14:07:01 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2012-06-23 14:07:01 +0300 |
commit | c81b46f68faf94738e7c96bece4a2627451aceb4 (patch) | |
tree | 56c592f01417fb9816b3d3a71ccdc8c7967b7a7e /src/ralloc.c | |
parent | ec55c5e0b0d548a1c1029094682c4645c8740934 (diff) | |
download | emacs-c81b46f68faf94738e7c96bece4a2627451aceb4.tar.gz |
Backport: 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.
Diffstat (limited to 'src/ralloc.c')
-rw-r--r-- | src/ralloc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ralloc.c b/src/ralloc.c index 2e4823dc6c1..b1a5982574f 100644 --- a/src/ralloc.c +++ b/src/ralloc.c @@ -757,7 +757,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) @@ -1204,12 +1204,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++; } |