fix mingw64 debug build
authorRobin Gareus <robin@gareus.org>
Thu, 17 Nov 2016 11:58:28 +0000 (12:58 +0100)
committerRobin Gareus <robin@gareus.org>
Thu, 17 Nov 2016 11:58:28 +0000 (12:58 +0100)
libs/pbd/tlsf.cc

index 5a83159731a6a807119ba87350fdb03df66431fa..40c5864c418d2e3f19f49aac91e8db0783879e14 100644 (file)
@@ -393,7 +393,10 @@ PBD::TLSF::TLSF (std::string name, size_t mem_pool_size)
 
        assert (mem_pool);
        assert (mem_pool_size >= sizeof(tlsf_t) + BHDR_OVERHEAD * 8);
+
+#ifndef __MINGW64__ // cast fails
        assert (0 == (((unsigned long)mem_pool) & PTR_MASK));
+#endif
 
 #ifndef PLATFORM_WINDOWS
        memset (mem_pool, 0, mem_pool_size); // make resident