Skip to content

Commit

Permalink
fix bug reading large random seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
drbergman committed Nov 7, 2024
1 parent a37ee57 commit 0b49dcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/PhysiCell_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ void PhysiCell_Settings::read_from_pugixml( void )
}
else
{
int seed;
unsigned int seed;
try
{ seed = std::stoi(random_seed); }
{ seed = std::stoul(random_seed); }
catch(const std::exception& e)
{
std::cout << "ERROR: " << random_seed << " is not a valid random seed. It must be an integer. Fix this within <options>." << std::endl;
Expand Down

0 comments on commit 0b49dcf

Please sign in to comment.