From 1a7db5b528868bdf73b1e2a648134120a28bfe20 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 8 Jun 2012 11:20:12 -0400 Subject: path: Pass int width for printf field width, not long --- json-glib/json-path.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'json-glib/json-path.c') 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; } -- cgit v1.2.1