mirror of
https://github.com/dobin/SuperMega
synced 2026-06-02 17:27:10 +00:00
fix: config int bug
This commit is contained in:
+1
-1
@@ -61,7 +61,7 @@ def create_c_from_template(settings: Settings, payload_len: int):
|
|||||||
settings.plugin_antiemulation)
|
settings.plugin_antiemulation)
|
||||||
with open(filepath_antiemulation, "r", encoding='utf-8') as file:
|
with open(filepath_antiemulation, "r", encoding='utf-8') as file:
|
||||||
sir_iteration_count = 5
|
sir_iteration_count = 5
|
||||||
sir_alloc_count = int(config.get("sir_target_mem") / payload_len)+1
|
sir_alloc_count = (int(config.get("sir_target_mem")) / payload_len)+1
|
||||||
# if too large, compiler will add a __checkstk dependency
|
# if too large, compiler will add a __checkstk dependency
|
||||||
if sir_alloc_count > 256:
|
if sir_alloc_count > 256:
|
||||||
sir_alloc_count = 256
|
sir_alloc_count = 256
|
||||||
|
|||||||
Reference in New Issue
Block a user