We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e25c6b commit 16b5922Copy full SHA for 16b5922
pandas/_libs/src/klib/khash_python.h
@@ -99,13 +99,13 @@ inline static kh_str_starts_t* kh_init_str_starts(void) {
99
inline static khint_t kh_put_str_starts_item(kh_str_starts_t* table, char* key, int* ret) {
100
khint_t result = kh_put_str(table->table, key, ret);
101
if (*ret != 0) {
102
- table->starts[key[0]] = 1;
+ table->starts[(unsigned char)key[0]] = 1;
103
}
104
return result;
105
106
107
inline static khint_t kh_get_str_starts_item(kh_str_starts_t* table, char* key) {
108
- int ch = *key;
+ unsigned char ch = *key;
109
if (table->starts[ch]) {
110
if (ch == '\0' || kh_get_str(table->table, key) != table->table->n_buckets) return 1;
111
0 commit comments