From 5f0eba49f2978b65b39b0c2bb9079be53c5c7d47 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 4 Aug 2011 08:29:30 -0400 Subject: KWSys: Avoid conversion warning in SystemTools::GetTime Convert struct timeval members to double explicitly to avoid a GCC warning with -Wconversion. --- Source/kwsys/SystemTools.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index d1f1591..c4aff4a 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -296,7 +296,7 @@ double SystemTools::GetTime(void) #else struct timeval t; gettimeofday(&t, 0); - return 1.0*t.tv_sec + 0.000001*t.tv_usec; + return 1.0*double(t.tv_sec) + 0.000001*double(t.tv_usec); #endif } -- cgit v0.12