From: dooglus Date: Thu, 8 Nov 2007 22:49:59 +0000 (+0000) Subject: Typo. It wasn't using the final value in the division test, so the compiler could... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5327ab4d4f08b9d56f43bb40329754f2e7eb0cfc;p=synfig.git Typo. It wasn't using the final value in the division test, so the compiler could still have been optimizing the calculations out. git-svn-id: http://svn.voria.com/code@1118 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/ETL/trunk/test/fixed.cpp b/ETL/trunk/test/fixed.cpp index 369f0d1..13394dd 100644 --- a/ETL/trunk/test/fixed.cpp +++ b/ETL/trunk/test/fixed.cpp @@ -111,7 +111,7 @@ struct speed_test a=3+i; b=40+i; b/=a; a/=(i%20)+1; acc+= a; } - fprintf(stderr, "[%1d]...", int(int(a)/1e9)+5); // so the compiler doesn't optimize everything out + fprintf(stderr, "[%1d]...", int(int(acc)/1e9)+5); // so the compiler doesn't optimize everything out return MyTimer(); } };