Skip to content

Commit

Permalink
Fixing sign for uint max comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Oct 21, 2022
1 parent 0672950 commit 93065d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/volume_calc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ vector<VolumeCalculation::Result> VolumeCalculation::execute() const

// warn user if total sample size is greater than what the size_t type can
// represent
if (total_samples > UINT64_T_MAX) {
if (total_samples == UINT64_T_MAX) {
warning("The number of samples has exceeded the type used to track hits. "
"Volume "
"results may be inaccurate.");
Expand Down

0 comments on commit 93065d1

Please sign in to comment.