File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change 4242
4343HEADER_SIZE = 8
4444
45+ LIMITS_HAS_MAX = 0x1
46+
4547
4648def 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
You can’t perform that action at this time.
0 commit comments