diff options
| author | Joakim Verona | 2012-05-31 19:54:01 +0200 |
|---|---|---|
| committer | Joakim Verona | 2012-05-31 19:54:01 +0200 |
| commit | fc1f1f2ea1ceac41f81855e14a490db107d88681 (patch) | |
| tree | 853798b1704f9de86e02ad87d77f2b1e8d56dda8 /src/ralloc.c | |
| parent | 664e085984f192584c5b3c61495784a11d2ba6c1 (diff) | |
| parent | 32d72c2f5d7554ee2f1d37bb8aa210ee07165f25 (diff) | |
| download | emacs-fc1f1f2ea1ceac41f81855e14a490db107d88681.tar.gz emacs-fc1f1f2ea1ceac41f81855e14a490db107d88681.zip | |
upstream
Diffstat (limited to 'src/ralloc.c')
| -rw-r--r-- | src/ralloc.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ralloc.c b/src/ralloc.c index 7fdef69842a..19d15664eec 100644 --- a/src/ralloc.c +++ b/src/ralloc.c | |||
| @@ -1142,7 +1142,12 @@ r_alloc_reset_variable (POINTER *old, POINTER *new) | |||
| 1142 | void | 1142 | void |
| 1143 | r_alloc_inhibit_buffer_relocation (int inhibit) | 1143 | r_alloc_inhibit_buffer_relocation (int inhibit) |
| 1144 | { | 1144 | { |
| 1145 | use_relocatable_buffers = !inhibit; | 1145 | if (use_relocatable_buffers < 0) |
| 1146 | use_relocatable_buffers = 0; | ||
| 1147 | if (inhibit) | ||
| 1148 | use_relocatable_buffers++; | ||
| 1149 | else if (use_relocatable_buffers > 0) | ||
| 1150 | use_relocatable_buffers--; | ||
| 1146 | } | 1151 | } |
| 1147 | 1152 | ||
| 1148 | 1153 | ||