More warning fixes in the STM32 drvier, STM32 test project and the library core

This commit is contained in:
Pavel Kirienko
2014-08-28 17:28:44 +04:00
parent acf45e3e6b
commit 8a8bb78d38
7 changed files with 186 additions and 184 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ protected:
throw std::out_of_range("uavcan::Array");
#else
UAVCAN_ASSERT(0);
return Size - 1; // Ha ha
return SizeType(Size - 1U); // Ha ha
#endif
}
};
@@ -87,7 +87,7 @@ protected:
throw std::out_of_range("uavcan::Array");
#else
UAVCAN_ASSERT(0);
return (size_ == 0) ? 0 : (size_ - 1);
return SizeType((size_ == 0U) ? 0U : (size_ - 1U));
#endif
}