mirror of
https://github.com/TokTok/c-toxcore
synced 2026-10-24 06:13:45 +00:00
equivalent bitwise not
This commit is contained in:
1 parent
1810d1e20e
commit
d65ea9bc8d
1 file changed
+2
-2
+2
-2
@@ -36,7 +36,7 @@
|
||||
* -some considerations since the array size is never perfect
|
||||
*/
|
||||
|
||||
#define INDEX(i) (-i -1)
|
||||
#define INDEX(i) (~i)
|
||||
|
||||
/* Find data in list
|
||||
*
|
||||
@@ -141,7 +141,7 @@ int list_add(LIST *list, void *data, int id)
|
||||
return 0;
|
||||
}
|
||||
|
||||
i = -i - 1;
|
||||
i = ~i;
|
||||
|
||||
//increase the size of the arrays by one
|
||||
void *p;
|
||||
|
||||
Reference in new issue
Block a user