diff --git a/emper/Emper.hpp b/emper/Emper.hpp
index 44d14867e129ee9eb7f44bbdb5fcfed7a49bdf4c..e1b86ddb2e7dfd89d775af00dc586707935e0261 100644
--- a/emper/Emper.hpp
+++ b/emper/Emper.hpp
@@ -291,7 +291,8 @@ const bool CONTEXT_MANAGER_WITH_MEMORY_MANAGER =
 #endif
 		;
 
-constexpr float MEMORY_MANAGER_VICTIM_PERCENTAGE = EMPER_MEMORY_MANAGER_VICTIM_PERCENTAGE / 100;
+constexpr float MEMORY_MANAGER_VICTIM_PERCENTAGE =
+		static_cast<float>(EMPER_MEMORY_MANAGER_VICTIM_PERCENTAGE) / 100;
 static_assert(MEMORY_MANAGER_VICTIM_PERCENTAGE >= 0 && MEMORY_MANAGER_VICTIM_PERCENTAGE <= 1);
 
 const size_t ASSUME_PAGE_SIZE = EMPER_ASSUME_PAGE_SIZE;