From 10a127c526327da779c88fead87cb00e56d953c4 Mon Sep 17 00:00:00 2001 From: "rhyskidd@gmail.com" Date: Sun, 22 Jul 2012 07:18:11 +0000 Subject: PVS-Studio fix: V592 The expression was enclosed by parentheses twice: '((t - h * HOUR - m * MINUTE))'. One pair of parentheses is unnecessary or misprint is present. --- nGenEx/FormatUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nGenEx') diff --git a/nGenEx/FormatUtil.cpp b/nGenEx/FormatUtil.cpp index a2ad6f7..3e9fc55 100644 --- a/nGenEx/FormatUtil.cpp +++ b/nGenEx/FormatUtil.cpp @@ -64,7 +64,7 @@ void FormatTime(char* txt, double time) int h = (t / HOUR); int m = ((t - h*HOUR) / MINUTE); - int s = ((t - h*HOUR - m*MINUTE)); + int s = (t - h*HOUR - m*MINUTE); if (h > 0) sprintf(txt, "%02d:%02d:%02d", h,m,s); @@ -85,7 +85,7 @@ void FormatTimeOfDay(char* txt, double time) int h = (t / HOUR); int m = ((t - h*HOUR) / MINUTE); - int s = ((t - h*HOUR - m*MINUTE)); + int s = (t - h*HOUR - m*MINUTE); sprintf(txt, "%02d:%02d:%02d", h,m,s); } -- cgit v1.1