[json-glib] path: Pass int width for printf field width, not long
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib] path: Pass int width for printf field width, not long
- Date: Fri, 8 Jun 2012 15:24:46 +0000 (UTC)
commit 1a7db5b528868bdf73b1e2a648134120a28bfe20
Author: Colin Walters <walters verbum org>
Date: Fri Jun 8 11:20:12 2012 -0400
path: Pass int width for printf field width, not long
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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]