hackz.
authorCarl Hetherington <cth@carlh.net>
Thu, 6 Aug 2020 07:51:49 +0000 (09:51 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 6 Aug 2020 07:51:49 +0000 (09:51 +0200)
src/tools/dcpomatic_disk_writer.cc

index 411d1ff5c6dc5d3f09d5bd6d56dc0b0440f90cff..eb4e31c447180522b0986e1977b4964814d67de3 100644 (file)
@@ -127,7 +127,7 @@ write (boost::filesystem::path from, boost::filesystem::path to, uint64_t& total
                throw CopyError (String::compose("Failed to open file %1", from.string()), 0);
        }
 
-       uint8_t* buffer = dcpomatic_aligned_alloc (block_size, 4096);
+       uint8_t* buffer = reinterpret_cast<uint8_t*> (dcpomatic_aligned_alloc(block_size, 4096));
        if (!buffer) {
                throw bad_alloc();
        }