mirror of
https://github.com/python/cpython.git
synced 2025-10-13 10:23:28 +00:00
bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264)
This commit is contained in:
parent
10f8ce6688
commit
d53fe5f407
20 changed files with 35 additions and 35 deletions
|
@ -4198,7 +4198,7 @@ sock_sendto(PySocketSockObject *s, PyObject *args)
|
|||
break;
|
||||
default:
|
||||
PyErr_Format(PyExc_TypeError,
|
||||
"sendto() takes 2 or 3 arguments (%d given)",
|
||||
"sendto() takes 2 or 3 arguments (%zd given)",
|
||||
arglen);
|
||||
return NULL;
|
||||
}
|
||||
|
@ -4741,7 +4741,7 @@ sock_ioctl(PySocketSockObject *s, PyObject *arg)
|
|||
return PyLong_FromUnsignedLong(recv); }
|
||||
#endif
|
||||
default:
|
||||
PyErr_Format(PyExc_ValueError, "invalid ioctl command %d", cmd);
|
||||
PyErr_Format(PyExc_ValueError, "invalid ioctl command %lu", cmd);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue