File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -475,12 +475,7 @@ static PyType_Spec sslerror_type_spec = {
475475 *
476476 * We always assume that 'code' is non-negative.
477477 */
478- static inline const void *
479- ssl_errcode_to_ht_key (ssize_t code )
480- {
481- assert (code >= 0 );
482- return ((const void * )((uintptr_t )(code )));
483- }
478+ #define ssl_errcode_to_ht_key (code ) ((const void *)((uintptr_t)(code)))
484479
485480/*
486481 * Get the library and reason strings from a packed error code.
@@ -6914,6 +6909,7 @@ py_ht_libcode_to_name_create(void) {
69146909 for (const py_ssl_library_code * p = library_codes ; p -> library != NULL ; p ++ ) {
69156910 const void * key = ssl_errcode_to_ht_key (p -> code );
69166911 PyObject * prev = _Py_hashtable_get (table , key ); /* borrowed */
6912+ printf ("" )
69176913 if (prev != NULL ) {
69186914 assert (PyUnicode_CheckExact (prev ));
69196915 if (PyUnicode_EqualToUTF8 (prev , p -> library )) {
You can’t perform that action at this time.
0 commit comments