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

fix: explicitly cast unspecified chrono rep type #1

Merged
merged 1 commit into from
Jun 6, 2016

Conversation

abclogin
Copy link
Owner

@abclogin abclogin commented Jun 6, 2016

Blackhole can handle both signed int64 and unsigned integers,
but std::chrono representation type is long long, which may
vary depending on architecture where building occurs. Thus,
it may lead to ambiguous integer promotion when it's time
to format.

This commit does explicit cast to resolve ambiguity.

This should fix 3Hren#126 and 3Hren#129.

Blackhole can handle both signed int64 and unsigned integers,
but std::chrono representation type is long long, which may
vary depending on architecture where building occurs. Thus,
it may lead to ambiguous integer promotion when it's time
to format.

This commit does explicit cast to resolve ambiguity.

This should fix 3Hren#126 and 3Hren#129.
@abclogin abclogin merged commit 4bb721c into master Jun 6, 2016
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.

Could not compile under FreeBSD 10.3+Clang 3.4.1+Boost 1.58 or FreeBSD 11+Clang 3.8.0+Boost 1.56 - 2 errors
2 participants