FS-10167: Another small bug fix to get compiling on windows again
This commit is contained in:
parent
bea654eea2
commit
f3aad1a661
|
@ -718,12 +718,12 @@ KS_DECLARE(int) ks_list_delete_range(ks_list_t *restrict l, unsigned int posstar
|
||||||
|
|
||||||
KS_DECLARE(int) ks_list_clear(ks_list_t *restrict l) {
|
KS_DECLARE(int) ks_list_clear(ks_list_t *restrict l) {
|
||||||
struct ks_list_entry_s *s;
|
struct ks_list_entry_s *s;
|
||||||
unsigned int numels;
|
int numels;
|
||||||
|
|
||||||
ks_rwl_write_lock(l->lock);
|
ks_rwl_write_lock(l->lock);
|
||||||
|
|
||||||
/* will be returned */
|
/* will be returned */
|
||||||
numels = l->numels;
|
numels = (int)l->numels;
|
||||||
|
|
||||||
if (l->iter_active) {
|
if (l->iter_active) {
|
||||||
numels = -1;
|
numels = -1;
|
||||||
|
|
Loading…
Reference in New Issue