diff options
author | Sverker Eriksson <[email protected]> | 2015-02-10 21:00:59 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-03-12 19:15:23 +0100 |
commit | 85c8e9c956ac7f2fa15abe56a513a2d97839af23 (patch) | |
tree | d90c8fecc397341253e0e86ff1c7e36561496f8b /erts/emulator/beam/utils.c | |
parent | fc21440eec0283da271b36181ed24f25dedda0fe (diff) | |
download | otp-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.c | 4 |
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 { |