Skip to content

Commit

Permalink
hot fix for wasm runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
thedtvn committed Jul 20, 2024
1 parent 7b0fa51 commit 66d4e13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mbbank/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
from .mbasync import MBBankAsync
from .wasm_helper import wasm_encrypt

__version__ = '0.1.6'
__version__ = '0.1.7'
2 changes: 2 additions & 0 deletions mbbank/wasm_helper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ def storeValue(addr, v=undefined):
obj_id = len(self._values)
if obj_id >= len(self._values):
self._values.extend([undefined for _ in range(obj_id - len(self._values) + 1)])
if obj_id >= len(self._goRefCounts):
self._goRefCounts.extend([float("inf") for _ in range(obj_id - len(self._goRefCounts) + 1)])
self._values[obj_id] = v
self._goRefCounts[obj_id] = 0
self._ids.setdefault(v, obj_id)
Expand Down

0 comments on commit 66d4e13

Please sign in to comment.