From: <sv...@ww...> - 2006-01-30 21:35:20
|
Author: stormbringer Date: 2006-01-30 13:35:06 -0800 (Mon, 30 Jan 2006) New Revision: 1858 Modified: trunk/csp/cspsim/f16/StoresManagementPages.cpp Log: Small change to make code compile with Windows' math.h Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1858 Modified: trunk/csp/cspsim/f16/StoresManagementPages.cpp =================================================================== --- trunk/csp/cspsim/f16/StoresManagementPages.cpp 2006-01-29 22:36:33 UTC (rev 1857) +++ trunk/csp/cspsim/f16/StoresManagementPages.cpp 2006-01-30 21:35:06 UTC (rev 1858) @@ -622,7 +622,7 @@ if (index == 1) { if (!m_Current.empty()) { double value = std::min(entry.high, std::max<unsigned>(entry.low, atoi(m_Current.c_str()))); - entry.value = value / pow(10.0, entry.decimal); + entry.value = value / pow(10.0, (double)entry.decimal); m_Current = ""; formatOutput(m_Index); } |