summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Cornu <ccornu>2005-03-28 14:44:05 +0000
committerChristophe Cornu <ccornu>2005-03-28 14:44:05 +0000
commite20967617af3717759ff20eede347aa1cc9b832d (patch)
treed9fb428c3f1afe218b4d4e48b63cac191a45b2da
parent912d9ae4503d2805b0e714545c02e578ca00d591 (diff)
downloadeclipse.platform.swt-e20967617af3717759ff20eede347aa1cc9b832d.tar.gz
eclipse.platform.swt-e20967617af3717759ff20eede347aa1cc9b832d.tar.xz
eclipse.platform.swt-e20967617af3717759ff20eede347aa1cc9b832d.zip
89028
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/JPEGFileFormat.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/common_j2se/org/eclipse/swt/internal/Compatibility.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/JPEGFileFormat.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/JPEGFileFormat.java
index 4e306b5154..c3fa2bd47c 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/JPEGFileFormat.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/internal/image/JPEGFileFormat.java
@@ -775,7 +775,7 @@ void emit(int huffCode, int nBits) {
if ((abs / 8) > 0) {
currentByte += codeBuffer[2];
emitByte((byte)currentByte);
- emitByte((byte)codeBuffer[1]);
+ emitByte(codeBuffer[1]);
currentByte = codeBuffer[0];
currentBitCount += nBits - 16;
} else {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common_j2se/org/eclipse/swt/internal/Compatibility.java b/bundles/org.eclipse.swt/Eclipse SWT/common_j2se/org/eclipse/swt/internal/Compatibility.java
index c1cf1ded37..594dfdd929 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/common_j2se/org/eclipse/swt/internal/Compatibility.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/common_j2se/org/eclipse/swt/internal/Compatibility.java
@@ -122,7 +122,7 @@ public static int floor(int p, int q) {
* @return the closest integer to the rational number p / q
*/
public static int round(int p, int q) {
- return (int)Math.round((float)p / q);
+ return Math.round((float)p / q);
}
/**