From 5e7980a770b229fa245c0b5de7663823bb08cae0 Mon Sep 17 00:00:00 2001 From: ale Date: Sat, 23 Aug 2025 13:22:34 +0200 Subject: [PATCH] clippy errors Signed-off-by: ale --- src/codegen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen.rs b/src/codegen.rs index 9ad6a30..6ae6810 100644 --- a/src/codegen.rs +++ b/src/codegen.rs @@ -179,7 +179,7 @@ impl CodeGenerator { let stack_space = parameters.len() * 8; // Always reserve at least 8 bytes to maintain 16-byte alignment after rbp push let min_space = if stack_space == 0 { 8 } else { stack_space }; - let aligned_space = ((min_space + 15) / 16) * 16; // Round up to 16-byte boundary + let aligned_space = min_space.div_ceil(16) * 16; // Round up to 16-byte boundary self.emit_line(&format!(" sub rsp, {}", aligned_space)); // Store parameters from registers (x86_64 calling convention)