Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed2010-03-30 16:23:12 +0000
committerGrant Gayed2010-03-30 16:23:12 +0000
commit538bb4f69797bf426eae8926aeb97b612a0b5024 (patch)
tree1f4cb49d1fe89e8f2183817457fd036c6cd22125 /bundles/org.eclipse.swt/Eclipse SWT WebKit
parent8c5510ae87e988a052d4c71c1ede4bbedb94113b (diff)
downloadeclipse.platform.swt-538bb4f69797bf426eae8926aeb97b612a0b5024.tar.gz
eclipse.platform.swt-538bb4f69797bf426eae8926aeb97b612a0b5024.tar.xz
eclipse.platform.swt-538bb4f69797bf426eae8926aeb97b612a0b5024.zip
64-bit fix
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT WebKit')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java
index a30a0dee8d..664fa78516 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java
@@ -1775,13 +1775,13 @@ Object convertToJava (int /*long*/ ctx, int /*long*/ value) {
case WebKitGTK.kJSTypeString: {
int /*long*/ string = WebKitGTK.JSValueToStringCopy (ctx, value, null);
if (string == 0) return ""; //$NON-NLS-1$
- int length = (int)/*64*/WebKitGTK.JSStringGetMaximumUTF8CStringSize (string);
- byte[] bytes = new byte[length];
+ int /*long*/ length = WebKitGTK.JSStringGetMaximumUTF8CStringSize (string);
+ byte[] bytes = new byte[(int)/*64*/length];
length = WebKitGTK.JSStringGetUTF8CString (string, bytes, length);
WebKitGTK.JSStringRelease (string);
try {
/* length-1 is needed below to exclude the terminator character */
- return new String (bytes, 0, length - 1, CHARSET_UTF8);
+ return new String (bytes, 0, (int)/*64*/length - 1, CHARSET_UTF8);
} catch (UnsupportedEncodingException e) {
return new String (Converter.mbcsToWcs (null, bytes));
}

Back to the top