Skip to content

Commit 93065d1

Browse files
committed
Fixing sign for uint max comparison
1 parent 0672950 commit 93065d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/volume_calc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ vector<VolumeCalculation::Result> VolumeCalculation::execute() const
227227

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

0 commit comments

Comments
 (0)