Skip to content

Commit 842d31e

Browse files
use Py_ssize_t for compatibility with MSVC
1 parent 22f0689 commit 842d31e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/_jsonnet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static int cpython_import_callback(void *ctx_, const char *base, const char *rel
255255
success = 0;
256256
} else {
257257
char *content_buf;
258-
ssize_t content_len;
258+
Py_ssize_t content_len;
259259
#if PY_MAJOR_VERSION >= 3
260260
const char *found_here_cstr = PyUnicode_AsUTF8(file_name);
261261
#else

0 commit comments

Comments
 (0)