summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSNumber.java
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2008-08-18 15:14:00 +0000
committerSilenio Quarti <silenio>2008-08-18 15:14:00 +0000
commit114a90e9c5c0a4fae8a6509db4dd3947871a06a6 (patch)
tree9e22800b8fd3eb5e9d420a613644bfcbab975e8e /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSNumber.java
parent047551711731234f55bfa1e053304f3a7d2a17a6 (diff)
downloadeclipse.platform.swt-114a90e9c5c0a4fae8a6509db4dd3947871a06a6.tar.gz
eclipse.platform.swt-114a90e9c5c0a4fae8a6509db4dd3947871a06a6.tar.xz
eclipse.platform.swt-114a90e9c5c0a4fae8a6509db4dd3947871a06a6.zip
64 bit work
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSNumber.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSNumber.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSNumber.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSNumber.java
index e46f1a42d3..23ed2a4be7 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSNumber.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSNumber.java
@@ -25,36 +25,36 @@ public NSNumber(id id) {
}
public int intValue() {
- return OS.objc_msgSend(this.id, OS.sel_intValue);
+ return (int)/*64*/OS.objc_msgSend(this.id, OS.sel_intValue);
}
public static NSNumber numberWithBool(boolean value) {
- int result = OS.objc_msgSend(OS.class_NSNumber, OS.sel_numberWithBool_, value);
+ int /*long*/ result = OS.objc_msgSend(OS.class_NSNumber, OS.sel_numberWithBool_, value);
return result != 0 ? new NSNumber(result) : null;
}
public static NSNumber numberWithInt(int value) {
- int result = OS.objc_msgSend(OS.class_NSNumber, OS.sel_numberWithInt_, value);
+ int /*long*/ result = OS.objc_msgSend(OS.class_NSNumber, OS.sel_numberWithInt_, value);
return result != 0 ? new NSNumber(result) : null;
}
public static NSValue valueWithPoint(NSPoint point) {
- int result = OS.objc_msgSend(OS.class_NSNumber, OS.sel_valueWithPoint_, point);
+ int /*long*/ result = OS.objc_msgSend(OS.class_NSNumber, OS.sel_valueWithPoint_, point);
return result != 0 ? new NSValue(result) : null;
}
public static NSValue valueWithRange(NSRange range) {
- int result = OS.objc_msgSend(OS.class_NSNumber, OS.sel_valueWithRange_, range);
+ int /*long*/ result = OS.objc_msgSend(OS.class_NSNumber, OS.sel_valueWithRange_, range);
return result != 0 ? new NSValue(result) : null;
}
public static NSValue valueWithRect(NSRect rect) {
- int result = OS.objc_msgSend(OS.class_NSNumber, OS.sel_valueWithRect_, rect);
+ int /*long*/ result = OS.objc_msgSend(OS.class_NSNumber, OS.sel_valueWithRect_, rect);
return result != 0 ? new NSValue(result) : null;
}
public static NSValue valueWithSize(NSSize size) {
- int result = OS.objc_msgSend(OS.class_NSNumber, OS.sel_valueWithSize_, size);
+ int /*long*/ result = OS.objc_msgSend(OS.class_NSNumber, OS.sel_valueWithSize_, size);
return result != 0 ? new NSValue(result) : null;
}