From 5fb49e66d5d42b57f2e4e40097f445a56d558f04 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 5 Nov 2017 16:23:25 +0000 Subject: Fix narrowing warning --- project2/ice/unittests/conversions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/project2/ice/unittests/conversions.cpp b/project2/ice/unittests/conversions.cpp index 546e922..2758c2b 100644 --- a/project2/ice/unittests/conversions.cpp +++ b/project2/ice/unittests/conversions.cpp @@ -22,9 +22,9 @@ namespace Slicer { pt.date().year(), pt.date().month(), pt.date().day(), - pt.time_of_day().hours(), - pt.time_of_day().minutes(), - pt.time_of_day().seconds() }; + (Ice::Int)pt.time_of_day().hours(), + (Ice::Int)pt.time_of_day().minutes(), + (Ice::Int)pt.time_of_day().seconds() }; } } -- cgit v1.2.3