diff options
Diffstat (limited to 'collections/double_ended_queue.c')
-rw-r--r-- | collections/double_ended_queue.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/collections/double_ended_queue.c b/collections/double_ended_queue.c index 0348cfa..a8daf92 100644 --- a/collections/double_ended_queue.c +++ b/collections/double_ended_queue.c @@ -194,12 +194,12 @@ int index; index = (root->beg + index) % root->limit; if (index >= root->end) - return NULL; + return; root->base[index] = NULL; if (root->beg < root->end || index >= root->beg) { - root->beg = memmove(root->base + root->beg + 1, + memmove(root->base + root->beg + 1, root->base + root->beg, (index - root->beg) * sizeof(void*)); ++root->beg; |