diff options
Diffstat (limited to 'mps/code')
| -rw-r--r-- | mps/code/abq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mps/code/abq.c b/mps/code/abq.c index 1ba82074c91..cee37b32989 100644 --- a/mps/code/abq.c +++ b/mps/code/abq.c | |||
| @@ -37,7 +37,8 @@ Res ABQInit(Arena arena, ABQ abq, void *owner, Count elements, Size elementSize) | |||
| 37 | AVER(abq != NULL); | 37 | AVER(abq != NULL); |
| 38 | AVER(elements > 0); | 38 | AVER(elements > 0); |
| 39 | 39 | ||
| 40 | /* Necessary in order to be able to distinguish "empty" from "full" */ | 40 | /* Allocate a dummy extra element in order to be able to distinguish |
| 41 | "empty" from "full" */ | ||
| 41 | elements = elements + 1; | 42 | elements = elements + 1; |
| 42 | 43 | ||
| 43 | res = ControlAlloc(&p, arena, ABQQueueSize(elements, elementSize), | 44 | res = ControlAlloc(&p, arena, ABQQueueSize(elements, elementSize), |