Skip to content

Commit 98c8b99

Browse files
committed
attempt various things
1 parent 630c2b5 commit 98c8b99

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Modules/_ssl.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6821,14 +6821,12 @@ sslmodule_init_constants(PyObject *m)
68216821
/* internal hashtable (errcode, libcode) => (reason [PyObject * (unicode)]) */
68226822
static Py_uhash_t
68236823
py_ht_errcode_to_name_hash(const void *key) {
6824-
return (Py_uhash_t)(py_ssl_errcode)((uintptr_t)key);
6824+
return _Py_hashtable_hash_ptr(key);
68256825
}
68266826

68276827
static int
68286828
py_ht_errcode_to_name_comp(const void *a, const void *b) {
6829-
py_ssl_errcode a_code = (py_ssl_errcode)((uintptr_t)a);
6830-
py_ssl_errcode b_code = (py_ssl_errcode)((uintptr_t)b);
6831-
return a_code == b_code;
6829+
return _Py_hashtable_hash_ptr(a) == _Py_hashtable_hash_ptr(b);
68326830
}
68336831

68346832
static void

0 commit comments

Comments
 (0)