Skip to content

Commit

Permalink
Fix assertion in GraphMeterMode_makeDetailsMask
Browse files Browse the repository at this point in the history
  • Loading branch information
Explorer09 committed Feb 9, 2024
1 parent ec2a53e commit 38ba6f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Meter.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ static uint16_t GraphMeterMode_makeDetailsMask(const GraphColorComputeState* pre

// If "rem" is not zero, it should have a minimum value so that
// (1.0 - rem) will not round to 1.0.
assert(rem <= 0.0 || rem >= (1.0 / UINT8_MAX));
assert(rem <= 0.0 || rem >= DBL_EPSILON);

double maxBlanks = (1.0 - rem) * 8.0;

Expand Down

0 comments on commit 38ba6f0

Please sign in to comment.