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

Skip to content

Commit ab906a5

Browse files
author
Thomas Heller
committed
Cast an Py_ssize_t to int, to avoid a compiler warning.
1 parent 6ea6e20 commit ab906a5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_ctypes/cfield.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ CField_repr(CFieldObject *self)
251251

252252
if (bits)
253253
result = PyString_FromFormat("<Field type=%s, ofs=%d:%d, bits=%d>",
254-
name, self->offset, size, bits);
254+
name, (int)self->offset, size, bits);
255255
else
256256
result = PyString_FromFormat("<Field type=%s, ofs=%d, size=%d>",
257-
name, self->offset, size);
257+
name, (int)self->offset, size);
258258
return result;
259259
}
260260

0 commit comments

Comments
 (0)