提交 8a66d178 编写于 作者: G Geoff Thorpe

Remove an unnecessary cast that causes certain compilers (eg. mine) some

confusion. Also silence a couple of signed/unsigned warnings.
上级 2eeaa026
...@@ -513,8 +513,8 @@ fmtint( ...@@ -513,8 +513,8 @@ fmtint(
(caps ? "0123456789ABCDEF" : "0123456789abcdef") (caps ? "0123456789ABCDEF" : "0123456789abcdef")
[uvalue % (unsigned) base]; [uvalue % (unsigned) base];
uvalue = (uvalue / (unsigned) base); uvalue = (uvalue / (unsigned) base);
} while (uvalue && (place < sizeof convert)); } while (uvalue && (place < (int)sizeof(convert)));
if (place == sizeof convert) if (place == sizeof(convert))
place--; place--;
convert[place] = 0; convert[place] = 0;
...@@ -643,7 +643,7 @@ fmtfp( ...@@ -643,7 +643,7 @@ fmtfp(
if (fracpart >= pow10(max)) { if (fracpart >= pow10(max)) {
intpart++; intpart++;
fracpart -= (long)pow10(max); fracpart -= pow10(max);
} }
/* convert integer part */ /* convert integer part */
...@@ -652,7 +652,7 @@ fmtfp( ...@@ -652,7 +652,7 @@ fmtfp(
(caps ? "0123456789ABCDEF" (caps ? "0123456789ABCDEF"
: "0123456789abcdef")[intpart % 10]; : "0123456789abcdef")[intpart % 10];
intpart = (intpart / 10); intpart = (intpart / 10);
} while (intpart && (iplace < sizeof iplace)); } while (intpart && (iplace < (int)sizeof(iplace)));
if (iplace == sizeof iplace) if (iplace == sizeof iplace)
iplace--; iplace--;
iconvert[iplace] = 0; iconvert[iplace] = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册