Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Ufimtsev2017-12-07 18:13:53 +0000
committerLeo Ufimtsev2017-12-07 18:13:53 +0000
commitccddf4d86de9b18c70f5ee874a6495a2eaeeed6d (patch)
tree0113eb1d862d26fe5f7c127f2779b2a0dbc21172 /bundles
parentc0925b528e5ba379d83868fd67f1aff0e88be8de (diff)
downloadeclipse.platform.swt-ccddf4d86de9b18c70f5ee874a6495a2eaeeed6d.tar.gz
eclipse.platform.swt-ccddf4d86de9b18c70f5ee874a6495a2eaeeed6d.tar.xz
eclipse.platform.swt-ccddf4d86de9b18c70f5ee874a6495a2eaeeed6d.zip
Bug 510905 (Webkit2FuncRetVal)[GTK3][Webkit2] Fix 32bit compile warning.
On 32bit systems, the webkitgtk_extension.c produces a warning because gsize is different on 32 bit than on 64 systems. Adding a cast that enforces consistent behavior across platforms. Change-Id: I27d1a1900bf949596eac746dc000fec2e0e7b107 Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_extension.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_extension.c b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_extension.c
index ade8e94e15..2dbc28c16c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_extension.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/library/webkitgtk_extension.c
@@ -278,7 +278,7 @@ static JSValueRef webkit2callJava (JSContextRef context,
JSValueRef retVal = 0;
if (g_variant_is_of_type(g_var_result, G_VARIANT_TYPE_TUPLE)) {
if (g_variant_n_children(g_var_result) != 1) {
- g_error("Should only receive a single item in the tuple, but length is: %lu\n", g_variant_n_children(g_var_result));
+ g_error("Should only receive a single item in the tuple, but length is: %ud\n", (unsigned int) g_variant_n_children(g_var_result));
}
retVal = convert_gvariant_to_js(context, g_variant_get_child_value(g_var_result, 0));
} else {

Back to the top