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

Skip to content

Commit 57c115c

Browse files
committed
Get rid of compiler warnings on Redhat
1 parent f4cdb47 commit 57c115c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_iconv_codec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ iconvcodec_encode(iconvcodecObject *self, PyObject *args, PyObject *kwargs)
122122
out_top = PyString_AS_STRING(outputobj); \
123123
}
124124
while (inplen > 0) {
125-
if (iconv(self->enchdl, &inp, &inplen, &out, &outlen) == -1) {
125+
if (iconv(self->enchdl, (char**)&inp, &inplen, &out, &outlen) == -1) {
126126
char reason[128];
127127
int errpos;
128128

@@ -319,7 +319,7 @@ iconvcodec_decode(iconvcodecObject *self, PyObject *args, PyObject *kwargs)
319319
out_top = (char *)PyUnicode_AS_UNICODE(outputobj); \
320320
}
321321
while (inplen > 0) {
322-
if (iconv(self->dechdl, &inp, &inplen, &out, &outlen) == -1) {
322+
if (iconv(self->dechdl, (char**)&inp, &inplen, &out, &outlen) == -1) {
323323
char reason[128], *reasonpos = (char *)reason;
324324
int errpos;
325325

0 commit comments

Comments
 (0)