Fix a few places to use NSUInteger

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40153 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2016-10-18 08:45:26 +00:00
parent 6b68c9a1ca
commit 57c16fcd8a

View file

@ -285,7 +285,7 @@ static Class messagePortClass = 0;
[d handlePortMessage: m]; [d handlePortMessage: m];
} }
- (unsigned) hash - (NSUInteger) hash
{ {
return [PORT(self)->name hash]; return [PORT(self)->name hash];
} }
@ -938,7 +938,7 @@ again:
* the start can be written directly without having to copy data to another * the start can be written directly without having to copy data to another
* buffer etc. * buffer etc.
*/ */
- (unsigned int) reservedSpaceLength - (NSUInteger) reservedSpaceLength
{ {
return sizeof(GSPortItemHeader) + sizeof(GSPortMsgHeader); return sizeof(GSPortItemHeader) + sizeof(GSPortMsgHeader);
} }
@ -969,7 +969,7 @@ again:
msgid: (int)msgId msgid: (int)msgId
components: (NSMutableArray*)components components: (NSMutableArray*)components
from: (NSPort*)receivingPort from: (NSPort*)receivingPort
reserved: (unsigned)length reserved: (NSUInteger)length
{ {
NSMutableData *h = nil; NSMutableData *h = nil;
NSMutableData *first; NSMutableData *first;
@ -996,7 +996,7 @@ again:
NSLog(@"Attempt to send through recv port"); NSLog(@"Attempt to send through recv port");
} }
c = [components count]; c = (unsigned)[components count];
if (c == 0) if (c == 0)
{ {
NSLog(@"empty components sent"); NSLog(@"empty components sent");