File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ Current Trunk
24
24
` EXPORTED_RUNTIME_METHODS ` .
25
25
- When building with ` MAIN_MODULE=2 ` the linker will now automatically include
26
26
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
28
28
list explicit ` EXPORTED_FUNCTIONS ` . Also, users of ` MAIN_MODULE=1 ` with
29
29
dynamic linking (not dlopen) who list all side modules on the command line,
30
30
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 42
42
43
43
HEADER_SIZE = 8
44
44
45
+ LIMITS_HAS_MAX = 0x1
46
+
45
47
46
48
def toLEB (num ):
47
49
return leb128 .u .encode (num )
@@ -165,7 +167,7 @@ def readLimits(self):
165
167
flags = self .readByte ()
166
168
initial = self .readULEB ()
167
169
maximum = 0
168
- if flags & 0x1 :
170
+ if flags & LIMITS_HAS_MAX :
169
171
maximum = self .readULEB ()
170
172
return Limits (flags , initial , maximum )
171
173
You can’t perform that action at this time.
0 commit comments