diff options
author | Tucker Evans <tucker@tuckerevans.com> | 2020-06-08 22:14:02 -0400 |
---|---|---|
committer | Tucker Evans <tucker@tuckerevans.com> | 2020-06-08 22:14:02 -0400 |
commit | 7e3a4d7bd009df8975f5ef374f979da7405fd501 (patch) | |
tree | 037aeb4ed511b0851c881d76403dfe87b98e653a /collections/double_ended_queue.c | |
parent | b93a7b87b55a42ca864325ae91328a5627885471 (diff) |
Fix trivial compiler errors.
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; |