diff options
author | Neil Rashbrook | 2014-11-12 16:39:41 +0000 |
---|---|---|
committer | Lakshmi Shanmugam | 2014-12-23 09:44:45 +0000 |
commit | db3186107125e4af3df777f17d4017ee4a8d99bf (patch) | |
tree | daffc51d3d03b4ceebc2de0d058df8ebee7500b8 | |
parent | 35c88fb5d4189f7597e6395afd73cda799c5c280 (diff) | |
download | eclipse.platform.swt-db3186107125e4af3df777f17d4017ee4a8d99bf.tar.gz eclipse.platform.swt-db3186107125e4af3df777f17d4017ee4a8d99bf.tar.xz eclipse.platform.swt-db3186107125e4af3df777f17d4017ee4a8d99bf.zip |
Bug 451204 - nsIInputStream.Available's type changed
Write a long long on XULRunner 24.
Change-Id: I73637d89e1e860a82428e5a91dc6e6a98cfe3b1b
Signed-off-by: Neil Rashbrook <neil@parkwaycc.co.uk>
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/InputStream.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/InputStream.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/InputStream.java index f3215f6fbd..c56de328d0 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/InputStream.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/InputStream.java @@ -99,7 +99,10 @@ int Close () { int Available (long /*int*/ _retval) { int available = buffer == null ? 0 : buffer.length - index; - XPCOM.memmove (_retval, new int[] {available}, 4); + if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR24)) + XPCOM.memmove (_retval, new long[] {available}, 8); + else + XPCOM.memmove (_retval, new int[] {available}, 4); return XPCOM.NS_OK; } |