diff options
author | Emil Renner Berthing <esmil@mailme.dk> | 2020-10-03 10:51:59 +0200 |
---|---|---|
committer | Emil Renner Berthing <esmil@mailme.dk> | 2020-10-22 11:47:36 +0200 |
commit | fdd6fa389ed68a5d0761f7cb71c94db5e927d741 (patch) | |
tree | f918a2e7c37a9e69a730d2cd1f612924858a4d28 /py/modmath.c | |
parent | 6d3aa16443c3eeef3945bf3d31429a655f690e0c (diff) |
py: Use unsigned comparison of chars.
On x86 chars are signed, but we're comparing a char to '0' + unsigned int,
which is promoted to an unsigned int. Let's promote the char to unsigned
before doing the comparison to avoid weird corner cases.
Diffstat (limited to 'py/modmath.c')
0 files changed, 0 insertions, 0 deletions