Skip to content

Commit 7ea4454

Browse files
committed
fix: cast pointer to fix Wc++-compat warning
1 parent 554675b commit 7ea4454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/src/parser/tokenizer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1890,7 +1890,7 @@ static int copy_string_without_char(char output[PROCESSED_WORD_CAPACITY],
18901890
size_t remaining_bytes_to_read = str_len;
18911891

18921892
while (remaining_bytes_to_read > 0) {
1893-
right = memchr(left, char_to_remove, remaining_bytes_to_read);
1893+
right = (const char *)memchr(left, char_to_remove, remaining_bytes_to_read);
18941894

18951895
// If it doesn't find the char to remove, just copy until EOS.
18961896
// We are also casting directly to size_t because

0 commit comments

Comments
 (0)