From de9e9620e3fdce6f9d7d02d8d24316e830b23438 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Mon, 9 Aug 2004 17:38:51 +0000 Subject: [PATCH] Got rid of msvc++ warning message. --- Cantera/src/ct2ctml.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Cantera/src/ct2ctml.cpp b/Cantera/src/ct2ctml.cpp index 4b1c08d37..00e73d6d5 100644 --- a/Cantera/src/ct2ctml.cpp +++ b/Cantera/src/ct2ctml.cpp @@ -47,7 +47,8 @@ namespace ctml { static bool checkPython() { time_t aclock; time( &aclock ); - string path = tmpDir() + "/.check"+int2str(aclock)+".pyw"; + int ia = static_cast(aclock); + string path = tmpDir() + "/.check"+int2str(ia)+".pyw"; ofstream f(path.c_str()); if (!f) { throw CanteraError("checkPython","cannot open "+path+" for writing"); @@ -97,8 +98,8 @@ namespace ctml { time_t aclock; time( &aclock ); - - string path = tmpDir()+"/.cttmp"+int2str(aclock)+".pyw"; + int ia = static_cast(aclock); + string path = tmpDir()+"/.cttmp"+int2str(ia)+".pyw"; ofstream f(path.c_str()); if (!f) { throw CanteraError("ct2ctml","cannot open "+path+" for writing.");