Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cd75298

Browse files
committed
Issue #21781, _ssl: Fix asn1obj2py() on Windows 64-bit, "s#" format requires
size to be a Py_ssize_t, not an int. _ssl.c is now "Py_ssize_t clean".
1 parent ef03565 commit cd75298

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_ssl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3416,7 +3416,7 @@ asn1obj2py(ASN1_OBJECT *obj)
34163416
int nid;
34173417
const char *ln, *sn;
34183418
char buf[100];
3419-
int buflen;
3419+
Py_ssize_t buflen;
34203420

34213421
nid = OBJ_obj2nid(obj);
34223422
if (nid == NID_undef) {

0 commit comments

Comments
 (0)