]> granicus.if.org Git - python/commitdiff
Issue #21781, _ssl: Fix asn1obj2py() on Windows 64-bit, "s#" format requires
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 7 Jul 2014 19:52:29 +0000 (21:52 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 7 Jul 2014 19:52:29 +0000 (21:52 +0200)
size to be a Py_ssize_t, not an int. _ssl.c is now "Py_ssize_t clean".

Modules/_ssl.c

index 12ffe52c2f0dde4f50ed870aeea4c89dfd3b9aec..5a9a13b82178c615ce7e06cfa5ea4057fbbe87ae 100644 (file)
@@ -3416,7 +3416,7 @@ asn1obj2py(ASN1_OBJECT *obj)
     int nid;
     const char *ln, *sn;
     char buf[100];
-    int buflen;
+    Py_ssize_t buflen;
 
     nid = OBJ_obj2nid(obj);
     if (nid == NID_undef) {