diff options
Diffstat (limited to 'src/js/primitives/mem.js')
| -rw-r--r-- | src/js/primitives/mem.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/js/primitives/mem.js b/src/js/primitives/mem.js index b5078eb..4025c2f 100644 --- a/src/js/primitives/mem.js +++ b/src/js/primitives/mem.js @@ -254,6 +254,7 @@ function _sptr(s) { } write_str(global_sptr_addy, s); global_sptr_addy += s.length; + sptr_len += s.length; return global_sptr_addy - s.length; } @@ -281,6 +282,7 @@ function shit_heap(v) { } // write_str(global_sptr_addy, s); global_sptr_addy += v; + sptr_len += v; return global_sptr_addy - v; } |
