Skip to content

Commit

Permalink
Use double instead of float
Browse files Browse the repository at this point in the history
  • Loading branch information
cmb69 committed Feb 4, 2025
1 parent b7524bb commit 8ce18c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/mbstring/mbstring.c
Original file line number Diff line number Diff line change
Expand Up @@ -3092,8 +3092,8 @@ try_next_encoding:;
}

for (size_t i = 0; i < length; i++) {
float demerits = array[i].demerits * array[i].multiplier;
array[i].demerits = demerits < (float) UINT64_MAX ? (uint64_t) demerits : UINT64_MAX;
double demerits = array[i].demerits * array[i].multiplier;
array[i].demerits = demerits < (double) UINT64_MAX ? (uint64_t) demerits : UINT64_MAX;
}

return length;
Expand Down

0 comments on commit 8ce18c4

Please sign in to comment.