Mozilla Home
Privacy
Cookies
Legal
Bugzilla
Browse
Advanced Search
New Bug
Reports
Documentation
Log In
Log In with GitHub
or
Remember me
Browse
Advanced Search
New Bug
Reports
Documentation
Attachment 26250 Details for
Bug 44009
[patch]
proposed fix
ad (text/plain), 1.30 KB, created by
Brendan Eich [:brendan]
(
hide
)
Description:
proposed fix
Filename:
MIME Type:
Creator:
Brendan Eich [:brendan]
Size:
1.30 KB
patch
obsolete
>Index: jsarena.h >=================================================================== >RCS file: /cvsroot/mozilla/js/src/jsarena.h,v >retrieving revision 3.12 >diff -u -r3.12 jsarena.h >--- jsarena.h 2001/01/27 08:00:41 3.12 >+++ jsarena.h 2001/02/27 07:51:40 >@@ -130,10 +130,9 @@ > #define JS_ARENA_GROW_CAST(p, type, pool, size, incr) \ > JS_BEGIN_MACRO \ > JSArena *_a = (pool)->current; \ >- size_t _incr = JS_ARENA_ALIGN(pool, incr); \ >- jsuword _p = _a->avail; \ >- jsuword _q = _p + _incr; \ >- if (_p == (jsuword)(p) + JS_ARENA_ALIGN(pool, size)) { \ >+ if (_a->avail == (jsuword)(p) + JS_ARENA_ALIGN(pool, size)) { \ >+ size_t _nb = (size) + (incr); \ >+ jsuword _q = (jsuword)(p) + JS_ARENA_ALIGN(pool, _nb); \ > if (_q <= _a->limit) { \ > _a->avail = _q; \ > JS_ArenaCountInplaceGrowth(pool, size, incr); \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
|
Review
Attachments on
bug 44009
:
12611
|
12612
|
13860
|
13864
|
24548
| 26250