Skip to content

Conversation

jagerman
Copy link
Member

The duration calculation was using %, but that's only supported on duration objects when the arithmetic type supports %, and hence fails for floats. Fixed by subtracting off the calculated values instead.

Fixes #719.

The duration calculation was using %, but that's only supported on
duration objects when the arithmetic type supports %, and hence fails
for floats.  Fixed by subtracting off the calculated values instead.
@jagerman jagerman force-pushed the float-duration-fix branch from e3e5daf to a5c1f96 Compare March 12, 2017 02:35
@jagerman jagerman merged commit e5456c2 into pybind:master Mar 12, 2017
@jagerman jagerman modified the milestone: v2.1 Mar 19, 2017
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.

1 participant