Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: patches/nspr-no-pointers-in-longs.patch

Issue 1019063003: Update to NSPR 4.10.8 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/nss.git@master
Patch Set: README bump Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « nspr/pr/src/threads/prdump.c ('k') | scripts/nspr-checkout.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 diff --git a/nspr/pr/src/threads/combined/pruthr.c b/nspr/pr/src/threads/combine d/pruthr.c
2 index 825ed89..4fb8765 100644
3 --- a/nspr/pr/src/threads/combined/pruthr.c
4 +++ b/nspr/pr/src/threads/combined/pruthr.c
5 @@ -73,13 +73,13 @@ void _PR_InitThreads(PRThreadType type, PRThreadPriority pri ority,
6 #ifndef HAVE_CUSTOM_USER_THREADS
7 stack = PR_NEWZAP(PRThreadStack);
8 #ifdef HAVE_STACK_GROWING_UP
9 - stack->stackTop = (char*) ((((long)&type) >> _pr_pageShift)
10 + stack->stackTop = (char*) ((((intptr_t)&type) >> _pr_pageShift)
11 << _pr_pageShift);
12 #else
13 #if defined(SOLARIS) || defined (UNIXWARE) && defined (USR_SVR4_THREADS)
14 stack->stackTop = (char*) &thread;
15 #else
16 - stack->stackTop = (char*) ((((long)&type + _pr_pageSize - 1)
17 + stack->stackTop = (char*) ((((intptr_t)&type + _pr_pageSize - 1)
18 >> _pr_pageShift) << _pr_pageShift);
19 #endif
20 #endif
21 @@ -174,12 +174,12 @@ static void _PR_InitializeNativeStack(PRThreadStack *ts)
22 ** Setup stackTop and stackBottom values.
23 */
24 #ifdef HAVE_STACK_GROWING_UP
25 - ts->allocBase = (char*) ((((long)&ts) >> _pr_pageShift)
26 + ts->allocBase = (char*) ((((intptr_t)&ts) >> _pr_pageShift)
27 << _pr_pageShift);
28 ts->stackBottom = ts->allocBase + ts->stackSize;
29 ts->stackTop = ts->allocBase;
30 #else
31 - ts->allocBase = (char*) ((((long)&ts + _pr_pageSize - 1)
32 + ts->allocBase = (char*) ((((intptr_t)&ts + _pr_pageSize - 1)
33 >> _pr_pageShift) << _pr_pageShift);
34 ts->stackTop = ts->allocBase;
35 ts->stackBottom = ts->allocBase - ts->stackSize;
OLDNEW
« no previous file with comments | « nspr/pr/src/threads/prdump.c ('k') | scripts/nspr-checkout.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698