Changeset 49491 in vbox
- Timestamp:
- Nov 15, 2013 10:11:42 AM (11 years ago)
- Location:
- trunk/src/libs/xpcom18a4
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/nsprpub/pr/src/misc/prnetdb.c
r46043 r49491 2136 2136 if (!_pr_ipv6_is_present) { 2137 2137 /* using PRAddrInfoFB */ 2138 PRIntn iter = (PRIntn) 2138 PRIntn iter = (PRIntn)(uintptr_t)iterPtr; 2139 2139 iter = PR_EnumerateHostEnt(iter, &((PRAddrInfoFB *) base)->hostent, port, result); 2140 2140 if (iter < 0) 2141 2141 iter = 0; 2142 return (void *) 2142 return (void *)(uintptr_t)iter; 2143 2143 } 2144 2144 #endif -
trunk/src/libs/xpcom18a4/xpcom/ds/nsCheapSets.h
r21113 r49491 176 176 void SetInt(PRInt32 aInt) 177 177 { 178 mValOrHash = (void*)( (aInt << 1) | 0x1);178 mValOrHash = (void*)(uintptr_t)((aInt << 1) | 0x1); 179 179 } 180 180 /** Create the hash and initialize */ -
trunk/src/libs/xpcom18a4/xpcom/ds/pldhash.c
r31259 r49491 104 104 PL_DHashVoidPtrKeyStub(PLDHashTable *table, const void *key) 105 105 { 106 return (PLDHashNumber) key >> 2;106 return (PLDHashNumber)(uintptr_t)key >> 2; 107 107 } 108 108 -
trunk/src/libs/xpcom18a4/xpcom/io/nsFastLoadService.cpp
r21113 r49491 398 398 mChecksumTable.Put(&key, NS_INT32_TO_PTR(checksum)); 399 399 #else /* VBOX */ 400 mChecksumTable.Put(&key, (void *) checksum);400 mChecksumTable.Put(&key, (void *)(uintptr_t)checksum); 401 401 #endif /* VBOX */ 402 402 *aChecksum = checksum; … … 425 425 mChecksumTable.Put(&key, NS_INT32_TO_PTR(checksum)); 426 426 #else /* VBOX */ 427 mChecksumTable.Put(&key, (void *) checksum);427 mChecksumTable.Put(&key, (void *)(uintptr_t)checksum); 428 428 #endif /* VBOX */ 429 429 return NS_OK; -
trunk/src/libs/xpcom18a4/xpcom/tests/TestThreads.cpp
r1 r49491 216 216 for (k = 0; k < threads; k++) { 217 217 array[k] = PR_CreateThread(PR_USER_THREAD, 218 threadProc, (void*) 218 threadProc, (void*)(uintptr_t)k, 219 219 PR_PRIORITY_NORMAL, 220 220 PR_GLOBAL_THREAD, -
trunk/src/libs/xpcom18a4/xpcom/typelib/xpt/src/xpt_xdr.c
r1 r49491 144 144 XPT_HashTableAdd(XPTHashTable *table, void *key, void *value) { 145 145 XPTHashRecord **bucketloc = table->buckets + 146 (((PRUint32) key) % XPT_HASHSIZE);146 (((PRUint32)(uintptr_t)key) % XPT_HASHSIZE); 147 147 XPTHashRecord *bucket; 148 148 … … 160 160 static void * 161 161 XPT_HashTableLookup(XPTHashTable *table, void *key) { 162 XPTHashRecord *bucket = table->buckets[(PRUint32) key % XPT_HASHSIZE];162 XPTHashRecord *bucket = table->buckets[(PRUint32)(uintptr_t)key % XPT_HASHSIZE]; 163 163 while (bucket != NULL) { 164 164 if (bucket->key == key) … … 484 484 XPT_GetOffsetForAddr(XPTCursor *cursor, void *addr) 485 485 { 486 return (PRUint32) XPT_HashTableLookup(cursor->state->pool->offset_map, addr);486 return (PRUint32)(uintptr_t)XPT_HashTableLookup(cursor->state->pool->offset_map, addr); 487 487 } 488 488 … … 491 491 { 492 492 return XPT_HashTableAdd(cursor->state->pool->offset_map, 493 addr, (void *) offset) != NULL;493 addr, (void *)(uintptr_t)offset) != NULL; 494 494 } 495 495 … … 498 498 { 499 499 return XPT_HashTableAdd(cursor->state->pool->offset_map, 500 (void *) offset, addr) != NULL;500 (void *)(uintptr_t)offset, addr) != NULL; 501 501 } 502 502 … … 504 504 XPT_GetAddrForOffset(XPTCursor *cursor, PRUint32 offset) 505 505 { 506 return XPT_HashTableLookup(cursor->state->pool->offset_map, (void *) offset);506 return XPT_HashTableLookup(cursor->state->pool->offset_map, (void *)(uintptr_t)offset); 507 507 } 508 508
Note:
See TracChangeset
for help on using the changeset viewer.