Skip to content

Fix type conversion warnings. - #951

Merged
dmah42 merged 2 commits into
masterfrom
fix_warnings
Apr 6, 2020
Merged

dmah42 merged 2 commits into
masterfrom
fix_warnings

Conversation

@dmah42

@dmah42 dmah42 commented Mar 30, 2020

Copy link
Copy Markdown
Member

Fixes #949

Tested locally (Linux/clang), but warnings are on MSVC so may differ.

Fixes #949

Tested locally (Linux/clang), but warnings are on MSVC so may differ.
@dmah42
dmah42 requested a review from LebedevRI March 30, 2020 09:59

@LebedevRI LebedevRI left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Seems reasonable.

Comment thread test/statistics_gtest.cc Resolved

@LebedevRI LebedevRI left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LG

@dmah42
dmah42 merged commit 0ab2c29 into master Apr 6, 2020
@dmah42
dmah42 deleted the fix_warnings branch April 6, 2020 12:52
JBakamovic pushed a commit to JBakamovic/benchmark that referenced this pull request Sep 11, 2020
* Fix type conversion warnings.

Fixes google#949

Tested locally (Linux/clang), but warnings are on MSVC so may differ.

* Drop the ULP so the double test passes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warnings C4244 and C4305 'argument': truncation / conversion from 'double' to 'RawType' / 'const M' to 'const Element'

3 participants