fix: config int bug

This commit is contained in:
Dobin
2024-07-05 10:44:48 +01:00
parent b6045d9c78
commit 6d05779c7c
+1 -1
View File
@@ -61,7 +61,7 @@ def create_c_from_template(settings: Settings, payload_len: int):
settings.plugin_antiemulation)
with open(filepath_antiemulation, "r", encoding='utf-8') as file:
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 sir_alloc_count > 256:
sir_alloc_count = 256