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

Skip to content

Commit 529baf2

Browse files
committed
Fix compiler warning
1 parent 87482ea commit 529baf2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Modules/_ssl.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ typedef struct {
6464
static PyTypeObject PySSL_Type;
6565
static PyObject *PySSL_SSLwrite(PySSLObject *self, PyObject *args);
6666
static PyObject *PySSL_SSLread(PySSLObject *self, PyObject *args);
67+
static int wait_for_timeout(PySocketSockObject *s, int writing);
6768

6869
#define PySSLObject_Check(v) ((v)->ob_type == &PySSL_Type)
6970

Modules/cPickle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2916,7 +2916,7 @@ load_counted_long(Unpicklerobject *self, int size)
29162916
along = PyLong_FromLong(0L);
29172917
else {
29182918
/* Read the raw little-endian bytes & convert. */
2919-
i = self->read_func(self, &(char *)pdata, size);
2919+
i = self->read_func(self, (char **)&pdata, size);
29202920
if (i < 0) return -1;
29212921
along = _PyLong_FromByteArray(pdata, (size_t)size,
29222922
1 /* little endian */, 1 /* signed */);

0 commit comments

Comments
 (0)