Skip to content

Commit

Permalink
cext: cast pointer
Browse files Browse the repository at this point in the history
This avoids a fatal compile warning on Windows.
  • Loading branch information
indygreg committed Jun 19, 2022
1 parent cf3cc7d commit 4b6d60d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c-ext/decompressobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ static PyObject *DecompressionObj_decompress(ZstdDecompressionObj *self,
if (zresult == 0 || (input.pos == input.size && output.pos == 0)) {
/* We should only get here at most once. */
assert(!self->unused_data);
self->unused_data = PyBytes_FromStringAndSize(input.src + input.pos, input.size - input.pos);
self->unused_data = PyBytes_FromStringAndSize((char *)(input.src) + input.pos, input.size - input.pos);

break;
}
Expand Down

0 comments on commit 4b6d60d

Please sign in to comment.