Skip to content

Explicitly cast uint64_t to double#681

Merged
ngober merged 1 commit intoChampSim:developfrom
akihikodaki:cast
Jan 8, 2026
Merged

Explicitly cast uint64_t to double#681
ngober merged 1 commit intoChampSim:developfrom
akihikodaki:cast

Conversation

@akihikodaki
Copy link
Copy Markdown
Contributor

Implicit cast of uint64_t to double results in -Wconversion because it may truncate values. However, truncatation never happens for the particular instances of inc/listeners/heartbeat.h, so tell that to the compiler with explicitly cast.

Implicit cast of uint64_t to double results in -Wconversion because it
may truncate values. However, truncatation never happens for the
particular instances of inc/listeners/heartbeat.h, so tell that to
the compiler with explicitly cast.
@ngober ngober merged commit 63ee18a into ChampSim:develop Jan 8, 2026
31 of 32 checks passed
github-actions Bot added a commit that referenced this pull request Jan 8, 2026
Author: Nathan Gober
Committer: GitHub

Merge pull request #681 from akihikodaki/cast

Explicitly cast uint64_t to double
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