diff options
author | Geoff Thorpe <geoff@openssl.org> | 2003-10-29 05:00:57 +0000 |
---|---|---|
committer | Geoff Thorpe <geoff@openssl.org> | 2003-10-29 05:00:57 +0000 |
commit | 8a66d17899e6ed3ccdb2feb878e5d77d35753494 (patch) | |
tree | 70cbe83b43231bc2f57cf0d229f67fd3cca8116d /crypto/bio/b_print.c | |
parent | 2eeaa0261ef53307008b9725bc001b397c96e22e (diff) |
Remove an unnecessary cast that causes certain compilers (eg. mine) some
confusion. Also silence a couple of signed/unsigned warnings.
Diffstat (limited to 'crypto/bio/b_print.c')
-rw-r--r-- | crypto/bio/b_print.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c index 2cfc689dd6..f80335e269 100644 --- a/crypto/bio/b_print.c +++ b/crypto/bio/b_print.c @@ -513,8 +513,8 @@ fmtint( (caps ? "0123456789ABCDEF" : "0123456789abcdef") [uvalue % (unsigned) base]; uvalue = (uvalue / (unsigned) base); - } while (uvalue && (place < sizeof convert)); - if (place == sizeof convert) + } while (uvalue && (place < (int)sizeof(convert))); + if (place == sizeof(convert)) place--; convert[place] = 0; @@ -643,7 +643,7 @@ fmtfp( if (fracpart >= pow10(max)) { intpart++; - fracpart -= (long)pow10(max); + fracpart -= pow10(max); } /* convert integer part */ @@ -652,7 +652,7 @@ fmtfp( (caps ? "0123456789ABCDEF" : "0123456789abcdef")[intpart % 10]; intpart = (intpart / 10); - } while (intpart && (iplace < sizeof iplace)); + } while (intpart && (iplace < (int)sizeof(iplace))); if (iplace == sizeof iplace) iplace--; iconvert[iplace] = 0; |