Skip to content

Commit ffd48e4

Browse files
committed
Cast data buffer to char * for Windows
1 parent 29a8230 commit ffd48e4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Include/internal/pycore_blocks_output_buffer.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ _BlocksOutputBuffer_Grow(_BlocksOutputBuffer *buffer,
222222
buffer->allocated += block_size;
223223
buffer->num_blocks += 1;
224224

225-
*next_out = PyBytesWriter_GetData(buffer->writer) + current_size;
225+
char* data = PyBytesWriter_GetData(buffer->writer);
226+
*next_out = data + current_size;
226227
return block_size;
227228
}
228229

0 commit comments

Comments
 (0)