mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Fixes for 64bit systems .. mostly cosmetic avoidance of compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22282 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dc79072c9f
commit
06981169ed
19 changed files with 105 additions and 62 deletions
|
@ -618,7 +618,9 @@ static NSLock *cached_proxies_gate = nil;
|
|||
if ([item countdown] == NO)
|
||||
{
|
||||
NSDistantObject *obj = [item obj];
|
||||
NSMapRemove(targetToCached, (void*)((ProxyStruct*)obj)->_handle);
|
||||
|
||||
NSMapRemove(targetToCached,
|
||||
(void*)(uintptr_t)((ProxyStruct*)obj)->_handle);
|
||||
}
|
||||
}
|
||||
if ([cached_locals count] == 0)
|
||||
|
@ -3185,7 +3187,7 @@ static void callEncoder (DOContext *ctxt)
|
|||
repeats: YES];
|
||||
}
|
||||
item = [CachedLocalObject newWithObject: prox time: 5];
|
||||
NSMapInsert(targetToCached, (void*)target, item);
|
||||
NSMapInsert(targetToCached, (void*)(uintptr_t)target, item);
|
||||
M_UNLOCK(cached_proxies_gate);
|
||||
RELEASE(item);
|
||||
if (debug_connection > 3)
|
||||
|
@ -3276,7 +3278,7 @@ static void callEncoder (DOContext *ctxt)
|
|||
CachedLocalObject *cached;
|
||||
|
||||
M_LOCK(cached_proxies_gate);
|
||||
cached = NSMapGet (targetToCached, (void*)target);
|
||||
cached = NSMapGet (targetToCached, (void*)(uintptr_t)target);
|
||||
if (cached != nil)
|
||||
{
|
||||
proxy = [cached obj];
|
||||
|
@ -3286,7 +3288,7 @@ static void callEncoder (DOContext *ctxt)
|
|||
*/
|
||||
ASSIGN(((ProxyStruct*)proxy)->_connection, self);
|
||||
[self addLocalObject: proxy];
|
||||
NSMapRemove(targetToCached, (void*)target);
|
||||
NSMapRemove(targetToCached, (void*)(uintptr_t)target);
|
||||
if (debug_connection > 3)
|
||||
NSLog(@"target (0x%x) moved from cache", target);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue