mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-06 09:50:28 +00:00
fix(build): Fix others -Werror=discarded-qualifiers
This commit is contained in:
parent
55ade52712
commit
d09d2d7c72
3 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ forceinline void *bisect(const void *k, const void *data, size_t n, size_t size,
|
|||
} else if (c < 0) {
|
||||
r = m - 1;
|
||||
} else {
|
||||
return p + m * size;
|
||||
return (char *)p + m * size;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ different_byte_found:
|
|||
struct CritbitNode *newnode = malloc(sizeof(struct CritbitNode));
|
||||
newnode->byte = newbyte;
|
||||
newnode->otherbits = newotherbits;
|
||||
newnode->child[1 - newdirection] = ubytes;
|
||||
newnode->child[1 - newdirection] = (void*)ubytes;
|
||||
void **wherep = &t->root;
|
||||
for (;;) {
|
||||
unsigned char *wp = *wherep;
|
||||
|
|
|
@ -39,5 +39,5 @@ char *critbit0_get(struct critbit0 *t, const char *u) {
|
|||
const int direction = (1 + (q->otherbits | c)) >> 8;
|
||||
p = q->child[direction];
|
||||
}
|
||||
return strncmp(u, (const char *)p, ulen) == 0 ? (const char *)p : NULL;
|
||||
return strncmp(u, (char *)p, ulen) == 0 ? (char *)p : NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue