Skip to content

Commit 8b106c1

Browse files
authored
[mypyc] fix build on windows (#11316)
Trying to fix mypyc/mypy_mypyc-wheels#28, not sure why other windows builds don't complain... ``` build\misc_ops.c(515): error C2065: 'ssize_t': undeclared identifier build\misc_ops.c(515): error C2146: syntax error: missing ';' before identifier 'n' build\misc_ops.c(515): error C2065: 'n': undeclared identifier build\misc_ops.c(517): error C2065: 'n': undeclared identifier build\misc_ops.c(520): error C2065: 'n': undeclared identifier build\misc_ops.c(521): error C2065: 'n': undeclared identifier ``` Co-authored-by: hauntsaninja <>
1 parent 8e01ad9 commit 8b106c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypyc/lib-rt/misc_ops.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ int CPySequence_CheckUnpackCount(PyObject *sequence, Py_ssize_t expected) {
512512

513513
// Parse an integer (size_t) encoded as a variable-length binary sequence.
514514
static const char *parse_int(const char *s, size_t *len) {
515-
ssize_t n = 0;
515+
Py_ssize_t n = 0;
516516
while ((unsigned char)*s >= 0x80) {
517517
n = (n << 7) + (*s & 0x7f);
518518
s++;

0 commit comments

Comments
 (0)