@@ -71,7 +71,7 @@ void traced_free(void* ptr){
71
71
// The python 3 hash function has the invariant hash(x) == hash(int(x)) == hash(decimal(x))
72
72
// and the size of hash may be different by platform / version (long in py2, Py_ssize_t in py3).
73
73
// We don't need those invariants because types will be cast before hashing, and if Py_ssize_t
74
- // is 64 bits the truncation causes collission issues. Given all that, we use our own
74
+ // is 64 bits the truncation causes collision issues. Given all that, we use our own
75
75
// simple hash, viewing the double bytes as an int64 and using khash's default
76
76
// hash for 64 bit integers.
77
77
// GH 13436 showed that _Py_HashDouble doesn't work well with khash
@@ -338,13 +338,13 @@ khuint32_t PANDAS_INLINE kh_python_hash_func(PyObject* key) {
338
338
// are possible
339
339
if (PyFloat_CheckExact (key )) {
340
340
// we cannot use kh_float64_hash_func
341
- // becase float(k) == k holds for any int-object k
341
+ // because float(k) == k holds for any int-object k
342
342
// and kh_float64_hash_func doesn't respect it
343
343
hash = floatobject_hash ((PyFloatObject * )key );
344
344
}
345
345
else if (PyComplex_CheckExact (key )) {
346
346
// we cannot use kh_complex128_hash_func
347
- // becase complex(k,0) == k holds for any int-object k
347
+ // because complex(k,0) == k holds for any int-object k
348
348
// and kh_complex128_hash_func doesn't respect it
349
349
hash = complexobject_hash ((PyComplexObject * )key );
350
350
}
0 commit comments