Skip to content

Commit

Permalink
Fix the sign conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Okarss committed Jan 12, 2024
1 parent 9069cc4 commit 1a148e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* [Shreyas Balakrishna](https://github.com/shreyasbharath)
* [Jim Keener](https://github.com/jimktrains)
* [Dean T](https://github.com/deanoburrito)
* [Oskars Rubenis](https://github.com/Okarss)
2 changes: 1 addition & 1 deletion nanoprintf.h
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ int npf_ftoa_rev(char *buf, float f, npf_format_spec_t const *spec, int *out_fra
// round the value to the specified precision
if (spec->prec < *out_frac_chars) {
char *digit = dst - spec->prec - 1;
int carry = (*digit >= '5');
unsigned carry = (*digit >= '5');
while (carry && (++digit < dst)) {
carry = (*digit == '9');
*digit = carry ? '0' : (*digit + 1);
Expand Down

0 comments on commit 1a148e1

Please sign in to comment.