summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSDate.java
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSDate.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSDate.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSDate.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSDate.java
index f864e5c8e9..34903e1f70 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSDate.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSDate.java
@@ -16,7 +16,7 @@ public NSDate() {
super();
}
-public NSDate(int /*long*/ id) {
+public NSDate(long /*int*/ id) {
super(id);
}
@@ -25,17 +25,17 @@ public NSDate(id id) {
}
public NSCalendarDate dateWithCalendarFormat(NSString format, NSTimeZone aTimeZone) {
- int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_dateWithCalendarFormat_timeZone_, format != null ? format.id : 0, aTimeZone != null ? aTimeZone.id : 0);
+ long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_dateWithCalendarFormat_timeZone_, format != null ? format.id : 0, aTimeZone != null ? aTimeZone.id : 0);
return result != 0 ? new NSCalendarDate(result) : null;
}
public static NSDate dateWithTimeIntervalSinceNow(double secs) {
- int /*long*/ result = OS.objc_msgSend(OS.class_NSDate, OS.sel_dateWithTimeIntervalSinceNow_, secs);
+ long /*int*/ result = OS.objc_msgSend(OS.class_NSDate, OS.sel_dateWithTimeIntervalSinceNow_, secs);
return result != 0 ? new NSDate(result) : null;
}
public static NSDate distantFuture() {
- int /*long*/ result = OS.objc_msgSend(OS.class_NSDate, OS.sel_distantFuture);
+ long /*int*/ result = OS.objc_msgSend(OS.class_NSDate, OS.sel_distantFuture);
return result != 0 ? new NSDate(result) : null;
}