Remove an unnecessary cast that causes certain compilers (eg. mine) some
[openssl.git] / crypto / bio / b_print.c
index 2cfc689dd6b4cbe9fa7fd96543a4ef901b2a7585..f80335e269f5a8cc804ee6667310913ffb6e449d 100644 (file)
@@ -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;