We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 630c2b5 commit 98c8b99Copy full SHA for 98c8b99
Modules/_ssl.c
@@ -6821,14 +6821,12 @@ sslmodule_init_constants(PyObject *m)
6821
/* internal hashtable (errcode, libcode) => (reason [PyObject * (unicode)]) */
6822
static Py_uhash_t
6823
py_ht_errcode_to_name_hash(const void *key) {
6824
- return (Py_uhash_t)(py_ssl_errcode)((uintptr_t)key);
+ return _Py_hashtable_hash_ptr(key);
6825
}
6826
6827
static int
6828
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;
+ return _Py_hashtable_hash_ptr(a) == _Py_hashtable_hash_ptr(b);
6832
6833
6834
static void
0 commit comments