Skip to content

Commit c6af9e1

Browse files
committed
- fix an issue with local variable shadowing const
1 parent e624fd6 commit c6af9e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

copasi/OpenMP/COpenMPConfig.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ bool COpenMPConfig::setScheduleStrategy(const std::string & scheduleStrategy)
197197
void COpenMPConfig::initializeParameter()
198198
{
199199
std::string OMP_NUM_THREADS = COptions::getEnvironmentVariable("OMP_NUM_THREADS");
200-
C_UINT32 MaxNumThreads = OMP_NUM_THREADS.empty() ? ceil(MaxNumThreads / 2.0) : std::stoi(OMP_NUM_THREADS);
200+
C_UINT32 MaxNumThreads = OMP_NUM_THREADS.empty() ? ceil(COpenMPConfig::MaxNumThreads / 2.0) : std::stoi(OMP_NUM_THREADS);
201201

202202
_ScheduleStrategyOpenMP Schedule = getSchedule();
203203

0 commit comments

Comments
 (0)