diff dwt/internal/cocoa/NSData.d @ 60:62202ce0039f

Updated and fixed many modules to 3.514
author Jacob Carlborg <doob@me.com>
date Mon, 22 Dec 2008 15:10:19 +0100
parents d8635bb48c7c
children
line wrap: on
line diff
--- a/dwt/internal/cocoa/NSData.d	Tue Dec 09 21:52:21 2008 +0100
+++ b/dwt/internal/cocoa/NSData.d	Mon Dec 22 15:10:19 2008 +0100
@@ -38,7 +38,7 @@
     return cast(/*const*/void*) OS.objc_msgSend(this.id, OS.sel_bytes);
 }
 
-public static NSData dataWithBytes(/*const*/void*, NSUInteger length) {
+public static NSData dataWithBytes(/*const*/void* bytes, NSUInteger length) {
     objc.id result = OS.objc_msgSend(OS.class_NSData, OS.sel_dataWithBytes_length_, bytes, length);
     return result !is null ? new NSData(result) : null;
 }
@@ -52,7 +52,7 @@
 }
 
 public NSUInteger length() {
-    return OS.objc_msgSend(this.id, OS.sel_length);
+    return cast(NSUInteger) OS.objc_msgSend(this.id, OS.sel_length);
 }
 
 }