Skip to content

Cast milliseconds to long before constructing a boost::posix_time#336

Closed
morxa wants to merge 1 commit into
FreeOpcUa:masterfrom
morxa:boost-milliseconds-long-int
Closed

Cast milliseconds to long before constructing a boost::posix_time#336
morxa wants to merge 1 commit into
FreeOpcUa:masterfrom
morxa:boost-milliseconds-long-int

Conversation

@morxa
Copy link
Copy Markdown
Contributor

@morxa morxa commented Jul 27, 2019

The constructor of boost::posix_time::milliseconds no longer accepts
floating point numbers but long ints, cast accordingly.

This fixes a compilaton error on Fedora 30.

The constructor of boost::posix_time::milliseconds no longer accepts
floating point numbers but long ints, cast accordingly.

This fixes a compilaton error on Fedora 30.
@morxa
Copy link
Copy Markdown
Contributor Author

morxa commented Jul 27, 2019

This is almost the same fix as #335.

@superlambchops
Copy link
Copy Markdown

Maybe it's better just to make RevisedPublishingInterval long, to begin with.
see #339

@morxa
Copy link
Copy Markdown
Contributor Author

morxa commented Aug 14, 2019

Maybe it's better just to make RevisedPublishingInterval long, to begin with.
see #339

Yes, makes sense, but I didn't want to touch that as I wasn't sure how it's used exactly.

@morxa morxa closed this Aug 14, 2019
@morxa morxa deleted the boost-milliseconds-long-int branch January 31, 2020 17:31
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.

2 participants