diff --git a/Src/IACore/imp/inl/IACore/memory/allocator/general.inl b/Src/IACore/imp/inl/IACore/memory/allocator/general.inl index 36371b3..dfb64de 100644 --- a/Src/IACore/imp/inl/IACore/memory/allocator/general.inl +++ b/Src/IACore/imp/inl/IACore/memory/allocator/general.inl @@ -47,7 +47,7 @@ namespace ia UNUSED(hint); const size_type size = (sizeof(value_type) * count); const auto ptr = reinterpret_cast(_ia_malloc(size + alignment + sizeof(PVOID))); - const auto aligned_ptr = reinterpret_cast(ptr + sizeof(PVOID) + alignment - (ptr % alignment)); + const auto aligned_ptr = (size_type)(ptr + sizeof(PVOID) + alignment - (ptr % alignment)); *(reinterpret_cast(aligned_ptr-sizeof(PVOID))) = ptr; return reinterpret_cast(aligned_ptr); } diff --git a/Src/IACore/inc/hpp/IACore/Definitions.hpp b/Src/IACore/inc/hpp/IACore/Definitions.hpp index 02ad0ac..3d7e1d9 100644 --- a/Src/IACore/inc/hpp/IACore/Definitions.hpp +++ b/Src/IACore/inc/hpp/IACore/Definitions.hpp @@ -27,12 +27,6 @@ #include #include -#if defined (_MSC_VER ) -#if !defined(__clang__) -#error "IA software does not support compilation with MSVC. Please use Clang on Windows platforms." -#endif -#endif - #define IAC_SEC_LEVEL(v) (IACORE_SECURITY_LEVEL >= v) #define IA_DEFINED_TRUE(o) (defined(o) && (o > 0)) diff --git a/Src/IACoreTest/CMakeLists.txt b/Src/IACoreTest/CMakeLists.txt index 03f16c3..d92992b 100644 --- a/Src/IACoreTest/CMakeLists.txt +++ b/Src/IACoreTest/CMakeLists.txt @@ -1,8 +1,6 @@ add_executable(IACoreTest imp/cpp/Main.cpp) target_compile_options(IACoreTest PRIVATE - "-g" - "-O0" "-D__IA_DEBUG=1" )