We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5a0b75 commit 37bc2d2Copy full SHA for 37bc2d2
python/_jsonnet.c
@@ -147,7 +147,7 @@ static struct JsonnetJsonValue *cpython_native_callback(
147
void *ctx_, const struct JsonnetJsonValue * const *argv, int *succ)
148
{
149
const struct NativeCtx *ctx = ctx_;
150
- Py_ssize_t i;
+ int i;
151
152
PyEval_RestoreThread(*ctx->py_thread);
153
@@ -156,7 +156,7 @@ static struct JsonnetJsonValue *cpython_native_callback(
156
157
// Populate python function args.
158
arglist = PyTuple_New(ctx->argc);
159
- for (i = 0; i < (Py_ssize_t) ctx->argc; ++i) {
+ for (i = 0; i < ctx->argc; ++i) {
160
double d;
161
const char *param_str = jsonnet_json_extract_string(ctx->vm, argv[i]);
162
int param_null = jsonnet_json_extract_null(ctx->vm, argv[i]);
0 commit comments