Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove some old-style C casts #2745

Merged
merged 1 commit into from
Dec 23, 2018
Merged

Conversation

tjhei
Copy link
Member

@tjhei tjhei commented Dec 19, 2018

No description provided.

Copy link
Member

@gassmoeller gassmoeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks for the cleanup!

@gassmoeller gassmoeller merged commit 4202363 into geodynamics:master Dec 23, 2018
@@ -35,7 +35,7 @@ namespace aspect
bool
EndWalltime<dim>::execute()
{
return ( (std::time(nullptr)-start_walltime) >= (int)walltime_duration);
return std::difftime(std::time(nullptr),start_walltime) >= walltime_duration;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice find -- I didn't know about std::difftime!

freddrichards pushed a commit to freddrichards/aspect that referenced this pull request May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants