From 9bf604c46c833d0ffe3f0772181cabb61abec5d8 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Thu, 24 May 2018 17:07:40 +0200 Subject: [PATCH] timer.h: Improved const correctness of local variable. --- lib/timer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timer.h b/lib/timer.h index 6fdebc418..c2bd9ff23 100644 --- a/lib/timer.h +++ b/lib/timer.h @@ -50,7 +50,7 @@ struct TimerResultsData { } double seconds() const { - double ret = (double)((unsigned long)_clocks) / (double)CLOCKS_PER_SEC; + const double ret = (double)((unsigned long)_clocks) / (double)CLOCKS_PER_SEC; return ret; } };