Fix _push_move of SPSC. It shall take a pointer to the object, not the object itself as argument, just like the other _push_move
This commit is contained in:
1 parent
4b71bbec7e
commit
2e0fc21878
2 files changed
+5
-4
No files matched your search
@@ -535,7 +535,8 @@ static void test_spsc(void)
|
||||
b = squeue_uint_pop(&j, q);
|
||||
} while (b);
|
||||
assert(squeue_uint_empty_p(q));
|
||||
b = squeue_uint_push_move(q, 65536);
|
||||
unsigned l = 65536;
|
||||
b = squeue_uint_push_move(q, &l);
|
||||
assert(b);
|
||||
b = squeue_uint_pop(&j, q);
|
||||
assert(b);
|
||||
|
||||
Reference in new issue
Block a user