mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Fix compiler warning
This commit is contained in:
parent
87482ea055
commit
529baf2b57
2 changed files with 2 additions and 1 deletions
|
|
@ -64,6 +64,7 @@ typedef struct {
|
|||
static PyTypeObject PySSL_Type;
|
||||
static PyObject *PySSL_SSLwrite(PySSLObject *self, PyObject *args);
|
||||
static PyObject *PySSL_SSLread(PySSLObject *self, PyObject *args);
|
||||
static int wait_for_timeout(PySocketSockObject *s, int writing);
|
||||
|
||||
#define PySSLObject_Check(v) ((v)->ob_type == &PySSL_Type)
|
||||
|
||||
|
|
|
|||
|
|
@ -2916,7 +2916,7 @@ load_counted_long(Unpicklerobject *self, int size)
|
|||
along = PyLong_FromLong(0L);
|
||||
else {
|
||||
/* Read the raw little-endian bytes & convert. */
|
||||
i = self->read_func(self, &(char *)pdata, size);
|
||||
i = self->read_func(self, (char **)&pdata, size);
|
||||
if (i < 0) return -1;
|
||||
along = _PyLong_FromByteArray(pdata, (size_t)size,
|
||||
1 /* little endian */, 1 /* signed */);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue