From e26e44885669f3c278128bdfa70dff0de5dba87d Mon Sep 17 00:00:00 2001 From: rad9800 <105589633+rad9800@users.noreply.github.com> Date: Tue, 12 Jul 2022 08:22:25 +0100 Subject: [PATCH] Update entropy.cpp --- entropy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entropy.cpp b/entropy.cpp index 6c60570..2644e0c 100644 --- a/entropy.cpp +++ b/entropy.cpp @@ -72,5 +72,6 @@ int main() { // get optimized out by the compiler for (auto x : e.array) total += x; - + + return total; // prevent compiler optimizing it out on /O1 /O2 }