Fix all -Wconversion warnings

This commit is contained in:
Alex Hultman
2019-12-28 21:44:54 +01:00
parent 5d83b427f5
commit f274d63dca
11 changed files with 42 additions and 42 deletions
+3 -3
View File
@@ -34,7 +34,7 @@ inline int u32toaHex(uint32_t value, char *dst) {
value /= 16;
} while (value > 0);
int ret = p - temp;
int ret = (int) (p - temp);
do {
*dst++ = *--p;
@@ -47,11 +47,11 @@ inline int u32toa(uint32_t value, char *dst) {
char temp[10];
char *p = temp;
do {
*p++ = (char) (value % 10) + '0';
*p++ = (char) ((value % 10) + '0');
value /= 10;
} while (value > 0);
int ret = p - temp;
int ret = (int) (p - temp);
do {
*dst++ = *--p;