Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo Ufimtsev2017-12-07 18:13:53 +0000
committerLeo Ufimtsev2017-12-08 17:25:50 +0000
commitcf6eae19947ae022733790303bba743fdcc0af93 (patch)
treef4be979473180cf7d8982af76e78720893b25a1d
parent9c55d07591d154b42f50854c7654c7e856ae1587 (diff)
downloadeclipse.platform.swt-cf6eae19947ae022733790303bba743fdcc0af93.tar.gz
eclipse.platform.swt-cf6eae19947ae022733790303bba743fdcc0af93.tar.xz
eclipse.platform.swt-cf6eae19947ae022733790303bba743fdcc0af93.zip
Bug 510905 [GTK3][Webkit2] Implement webkit2 support for browser
function (Part 2: Java return a value from callback.) 32bit warning fix. 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: Ibc92c3d7fcdcbbf89f5a011e1a51d00e1f91240d Signed-off-by: Leo Ufimtsev <lufimtse@redhat.com>
-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