summaryrefslogtreecommitdiff
path: root/webhelper
diff options
context:
space:
mode:
authorJuan Pablo Ugarte <ugarte@endlessm.com>2016-06-27 14:12:04 -0300
committerJuan Pablo Ugarte <ugarte@endlessm.com>2016-06-28 16:34:10 -0300
commit138355dc3b5fc92c832cd75e5a6129469dbd1fd9 (patch)
tree43f12181634ba888a427ec185dc59e658095be23 /webhelper
parentef52b9f5f2b563be144f104a9dcc5b32adec1966 (diff)
Use G_GSIZE_FORMAT instead of %d to fix build in 64bits systems
https://phabricator.endlessm.com/T12150
Diffstat (limited to 'webhelper')
-rw-r--r--webhelper/webextensions/wh2extension.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/webhelper/webextensions/wh2extension.c b/webhelper/webextensions/wh2extension.c
index c5e281c..8dd738b 100644
--- a/webhelper/webextensions/wh2extension.c
+++ b/webhelper/webextensions/wh2extension.c
@@ -145,7 +145,7 @@ gettext_shim (JSContextRef js,
if (n_args != 1)
{
gchar *errmsg = g_strdup_printf ("Expected one argument to gettext(),"
- "but got %d.", n_args);
+ "but got %"G_GSIZE_FORMAT".", n_args);
*exception = throw_exception (js, errmsg);
g_free (errmsg);
return NULL;
@@ -190,7 +190,7 @@ ngettext_shim (JSContextRef js,
if (n_args != 3)
{
gchar *errmsg = g_strdup_printf ("Expected three arguments to ngettext(),"
- "but got %d.", n_args);
+ "but got %"G_GSIZE_FORMAT".", n_args);
*exception = throw_exception (js, errmsg);
g_free (errmsg);
return NULL;