Skip to content

Commit 5c0b5a2

Browse files
authored
1 parent db39c2d commit 5c0b5a2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ChangeLog.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Current Trunk
2424
`EXPORTED_RUNTIME_METHODS`.
2525
- When building with `MAIN_MODULE=2` the linker will now automatically include
2626
any symbols required by side modules found on the command line. This means
27-
that for many users of `MAIN_MODULE=2` it should not longer be necessary to
27+
that for many users of `MAIN_MODULE=2` it should no longer be necessary to
2828
list explicit `EXPORTED_FUNCTIONS`. Also, users of `MAIN_MODULE=1` with
2929
dynamic linking (not dlopen) who list all side modules on the command line,
3030
should be able to switch to `MAIN_MODULE=2` and get a reduction in code size.

tools/webassembly.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242

4343
HEADER_SIZE = 8
4444

45+
LIMITS_HAS_MAX = 0x1
46+
4547

4648
def toLEB(num):
4749
return leb128.u.encode(num)
@@ -165,7 +167,7 @@ def readLimits(self):
165167
flags = self.readByte()
166168
initial = self.readULEB()
167169
maximum = 0
168-
if flags & 0x1:
170+
if flags & LIMITS_HAS_MAX:
169171
maximum = self.readULEB()
170172
return Limits(flags, initial, maximum)
171173

0 commit comments

Comments
 (0)