diff options
author | Colin Walters <walters@verbum.org> | 2012-06-08 11:20:12 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2012-06-08 11:23:21 -0400 |
commit | 1a7db5b528868bdf73b1e2a648134120a28bfe20 (patch) | |
tree | 012cf47a0c5027f992f19246696609e3659cb382 /json-glib/json-path.c | |
parent | 2eb2fc40034496fa517feeb717c3ca114490c31f (diff) | |
download | json-glib-1a7db5b528868bdf73b1e2a648134120a28bfe20.tar.gz |
path: Pass int width for printf field width, not long
Diffstat (limited to 'json-glib/json-path.c')
-rw-r--r-- | json-glib/json-path.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/json-glib/json-path.c b/json-glib/json-path.c index 4be1909..350fab3 100644 --- a/json-glib/json-path.c +++ b/json-glib/json-path.c @@ -488,7 +488,7 @@ json_path_compile (JsonPath *path, g_set_error (error, JSON_PATH_ERROR, JSON_PATH_ERROR_INVALID_QUERY, _("Malformed slice expression '%*s'"), - end_p - p, + (int)(end_p - p), p + 1); goto fail; } @@ -532,7 +532,7 @@ json_path_compile (JsonPath *path, g_set_error (error, JSON_PATH_ERROR, JSON_PATH_ERROR_INVALID_QUERY, _("Invalid set definition '%*s'"), - end_p - p, + (int)(end_p - p), p + 1); goto fail; } @@ -585,7 +585,7 @@ json_path_compile (JsonPath *path, g_set_error (error, JSON_PATH_ERROR, JSON_PATH_ERROR_INVALID_QUERY, _("Invalid slice definition '%*s'"), - end_p - p, + (int)(end_p - p), p + 1); goto fail; } @@ -613,7 +613,7 @@ json_path_compile (JsonPath *path, g_set_error (error, JSON_PATH_ERROR, JSON_PATH_ERROR_INVALID_QUERY, _("Invalid array index definition '%*s'"), - end_p - p, + (int)(end_p - p), p + 1); goto fail; } |