[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r108695: Really fix bug #11519, by fi
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r108695: Really fix bug #11519, by fixing the last change in ralloc.c. |
Date: |
Sat, 23 Jun 2012 12:46:33 +0300 |
User-agent: |
Bazaar (2.5.0) |
------------------------------------------------------------
revno: 108695
fixes bug: http://debbugs.gnu.org/11519
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sat 2012-06-23 12:46:33 +0300
message:
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.
modified:
src/ChangeLog
src/ralloc.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2012-06-23 08:21:48 +0000
+++ b/src/ChangeLog 2012-06-23 09:46:33 +0000
@@ -1,3 +1,9 @@
+2012-06-23 Eli Zaretskii <address@hidden>
+
+ * 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 <address@hidden>
* sysdep.c [__FreeBSD__]: Fix recently-introduced typos.
=== modified file 'src/ralloc.c'
--- a/src/ralloc.c 2012-05-31 06:06:42 +0000
+++ b/src/ralloc.c 2012-06-23 09:46:33 +0000
@@ -741,7 +741,7 @@
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 @@
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 < 1)
use_relocatable_buffers++;
- else if (use_relocatable_buffers > 0)
- use_relocatable_buffers--;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r108695: Really fix bug #11519, by fixing the last change in ralloc.c.,
Eli Zaretskii <=