aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/utils.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2015-02-10 21:00:59 +0100
committerBjörn-Egil Dahlberg <[email protected]>2015-03-12 19:15:23 +0100
commit85c8e9c956ac7f2fa15abe56a513a2d97839af23 (patch)
treed90c8fecc397341253e0e86ff1c7e36561496f8b /erts/emulator/beam/utils.c
parentfc21440eec0283da271b36181ed24f25dedda0fe (diff)
downloadotp-85c8e9c956ac7f2fa15abe56a513a2d97839af23.tar.gz
otp-85c8e9c956ac7f2fa15abe56a513a2d97839af23.tar.bz2
otp-85c8e9c956ac7f2fa15abe56a513a2d97839af23.zip
erts: Make WSTACK usable through pointer
Diffstat (limited to 'erts/emulator/beam/utils.c')
-rw-r--r--erts/emulator/beam/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/utils.c b/erts/emulator/beam/utils.c
index a54a93b086..471bce8940 100644
--- a/erts/emulator/beam/utils.c
+++ b/erts/emulator/beam/utils.c
@@ -216,7 +216,7 @@ erl_grow_estack(ErtsEStack* s, Eterm* default_estack, Uint need)
* Helper function for the WSTACK macros defined in global.h.
*/
void
-erl_grow_wstack(ErtsWStack* s, UWord* default_wstack, Uint need)
+erl_grow_wstack(ErtsWStack* s, Uint need)
{
Uint old_size = (s->wend - s->wstart);
Uint new_size;
@@ -227,7 +227,7 @@ erl_grow_wstack(ErtsWStack* s, UWord* default_wstack, Uint need)
else
new_size = ((need / old_size) + 2) * old_size;
- if (s->wstart != default_wstack) {
+ if (s->wstart != s->wdefault) {
s->wstart = erts_realloc(s->alloc_type, s->wstart,
new_size*sizeof(UWord));
} else {