Replace int with NSInteger.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@30608 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2010-06-07 19:11:38 +00:00
parent d193acd41c
commit b1dba74b03
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2010-06-07 Fred Kiefer <FredKiefer@gmx.de>
* EOMultiReaderLock.m (-tryLockForWriting, -unlockForReading):
Replace int with NSInteger.
2010-06-06 David Wetzel <dave@turbocat.de>
* EOAccess/EOEntity.m
Added comment. Please check this!

View file

@ -121,8 +121,7 @@
- (void)lockForReading
{
NSThread *ct = [NSThread currentThread];
int cnt = (int)NSMapGet(_readerThreads,ct);
NSInteger cnt = (NSInteger)NSMapGet(_readerThreads,ct);
if (ct == _writerLockThread)
{
@ -163,7 +162,8 @@
- (void)unlockForReading
{
NSThread *ct = [NSThread currentThread];
int cnt = (int)NSMapGet(_readerThreads,ct);
NSInteger cnt = (NSInteger)NSMapGet(_readerThreads,ct);
if (--cnt)
{
NSMapInsert(_readerThreads,ct,(void *)(cnt));