Signed-off-by: falkTX <falktx@falktx.com>pull/330/head
@@ -24,6 +24,7 @@ | |||||
#include "StandaloneWindow.hpp" | #include "StandaloneWindow.hpp" | ||||
#ifdef _MSC_VER | #ifdef _MSC_VER | ||||
# pragma warning(push) | |||||
# pragma warning(disable:4661) /* instantiated template classes whose methods are defined elsewhere */ | # pragma warning(disable:4661) /* instantiated template classes whose methods are defined elsewhere */ | ||||
#endif | #endif | ||||
@@ -969,7 +970,7 @@ typedef NanoSubWidget NanoWidget; | |||||
END_NAMESPACE_DGL | END_NAMESPACE_DGL | ||||
#ifdef _MSC_VER | #ifdef _MSC_VER | ||||
# pragma warning(enable:4661) | |||||
# pragma warning(pop) | |||||
#endif | #endif | ||||
#endif // DGL_NANO_WIDGET_HPP_INCLUDED | #endif // DGL_NANO_WIDGET_HPP_INCLUDED |
@@ -355,7 +355,7 @@ public: | |||||
portGroupIndices.erase(kPortGroupNone); | portGroupIndices.erase(kPortGroupNone); | ||||
if (const uint32_t portGroupSize = portGroupIndices.size()) | |||||
if (const uint32_t portGroupSize = static_cast<uint32_t>(portGroupIndices.size())) | |||||
{ | { | ||||
fData->portGroups = new PortGroupWithId[portGroupSize]; | fData->portGroups = new PortGroupWithId[portGroupSize]; | ||||
fData->portGroupCount = portGroupSize; | fData->portGroupCount = portGroupSize; | ||||
@@ -285,11 +285,13 @@ protected: | |||||
tmpStr[std::strlen(key)] = '\0'; | tmpStr[std::strlen(key)] = '\0'; | ||||
// set msg size (key + separator + value + null terminator) | // set msg size (key + separator + value + null terminator) | ||||
const size_t msgSize = tmpStr.length() + 1U; | |||||
const uint32_t msgSize = static_cast<uint32_t>(tmpStr.length()) + 1U; | |||||
// reserve atom space | // reserve atom space | ||||
const size_t atomSize = sizeof(LV2_Atom) + msgSize; | |||||
const uint32_t atomSize = sizeof(LV2_Atom) + msgSize; | |||||
char* const atomBuf = (char*)malloc(atomSize); | char* const atomBuf = (char*)malloc(atomSize); | ||||
DISTRHO_SAFE_ASSERT_RETURN(atomBuf != nullptr,); | |||||
std::memset(atomBuf, 0, atomSize); | std::memset(atomBuf, 0, atomSize); | ||||
// set atom info | // set atom info | ||||