Commits

Kaya Kupferschmidt  committed b36d88e

Removed some warnings

  • Participants
  • Parent commits 20fe2d9

Comments (0)

Files changed (2)

File source/libs/magnum_core/source/magnum/object/Float_writer.h

         char* buffer = ecvt(value, Limits<ValueType>::decimals + 1, &dcpt, &sign);
 #endif
         char* str = buffer;
-        size_t digits = StringTraits<const char*>::getLength(str);
+        int digits = (int)StringTraits<const char*>::getLength(str);
 
         // Create result string
         if (sign)
         }
 
         // Check if we need to do some rounding
-        if (dcpt + precision < (int)digits) {
+        if (dcpt + precision < digits) {
             bool overflow = roundBuffer(str, max(0,dcpt + precision)) > 0;
             if (overflow) {
                 dcpt--;
 
         // Remove trailing zeros
         if (digits > dcpt) {
-            removeZeros(str + dcpt, min(precision,(int)digits - dcpt));
+            removeZeros(str + dcpt, min(precision,digits - dcpt));
         }
 
         // Print out mantissa up to decimal point

File source/libs/magnum_net/source/magnum/net/Subnet.cpp

 
 
 namespace magnum { namespace net {
+using magnum::types::byte;
 
 
 /*--------------------------------------------------------------------------*/
                     bits -= 8;
                 }
                 else if (bits > 0) {
-                    mask.u.Byte[i] = (0xff >> (8 - bits)) << (8 - bits);
+                    mask.u.Byte[i] = (byte)((0xff >> (8 - bits)) << (8 - bits));
                     bits = 0;
                 }
                 else {