Re: Passing argument with different width due to prototype: warning
Re: Passing argument with different width due to prototype: warning
- Subject: Re: Passing argument with different width due to prototype: warning
- From: Jack Repenning <email@hidden>
- Date: Tue, 13 May 2008 18:27:46 -0700
On May 13, 2008, at 6:10 PM, R.L. Grigg wrote:
NSSocketPort *socketPort=[[NSSocketPort alloc] initWithTCPPort:1234];
. . .
warning: passing argument 1 of 'initWithTCPPort:' with different
width due to prototype
I checked the NSPort header file for the NSSocketPort method
prototype, /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/
Foundation.framework/Versions/C/Headers/NSPort.h:
- (id)initWithTCPPort:(unsigned short)port;
What am I doing wrong?
Have you tried this?
NSSocketPort *socketPort=[[NSSocketPort alloc] initWithTCPPort:
(unsigned short)1234];
-==-
Jack Repenning
email@hidden
Project Owner
SCPlugin
http://scplugin.tigris.org
"Subversion for the rest of OS X"
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden