diff options
author | Christophe Cornu <ccornu> | 2004-03-15 20:46:21 +0000 |
---|---|---|
committer | Christophe Cornu <ccornu> | 2004-03-15 20:46:21 +0000 |
commit | 14ff83a52e5eb2bb5401e0786e506999ec0b171e (patch) | |
tree | 766665ca8e7eee7edf494d08272857aa9befb4f4 /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/FileTransfer.java | |
parent | 669c553b81e0ceef92e48fa4444cb68655b58363 (diff) | |
download | eclipse.platform.swt-14ff83a52e5eb2bb5401e0786e506999ec0b171e.tar.gz eclipse.platform.swt-14ff83a52e5eb2bb5401e0786e506999ec0b171e.tar.xz eclipse.platform.swt-14ff83a52e5eb2bb5401e0786e506999ec0b171e.zip |
64 bit
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/FileTransfer.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/FileTransfer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/FileTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/FileTransfer.java index 92e4deb1d0..6e9f1dc07e 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/FileTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/FileTransfer.java @@ -160,10 +160,10 @@ public Object nativeToJava(TransferData transferData) { int /*long*/ utf8Ptr = OS.g_locale_to_utf8(localePtr, -1, null, null, error); OS.g_free(localePtr); if (error[0] != 0 || utf8Ptr == 0) continue; - int[] items_written = new int[1]; + int /*long*/[] items_written = new int /*long*/[1]; int /*long*/ utf16Ptr = OS.g_utf8_to_utf16(utf8Ptr, -1, null, items_written, null); OS.g_free(utf8Ptr); - length = items_written[0]; + length = (int)/*64*/items_written[0]; char[] buffer = new char[length]; OS.memmove(buffer, utf16Ptr, length * 2); OS.g_free(utf16Ptr); |