Skip to content

Commit 7a198d4

Browse files
committed
revert macro
1 parent db3ed1c commit 7a198d4

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Modules/_ssl.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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)) {

0 commit comments

Comments
 (0)