summaryrefslogtreecommitdiff
path: root/py/modmath.c
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@mailme.dk>2020-10-03 10:51:59 +0200
committerEmil Renner Berthing <esmil@mailme.dk>2020-10-22 11:47:36 +0200
commitfdd6fa389ed68a5d0761f7cb71c94db5e927d741 (patch)
treef918a2e7c37a9e69a730d2cd1f612924858a4d28 /py/modmath.c
parent6d3aa16443c3eeef3945bf3d31429a655f690e0c (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