Always use 64-bit pointer types for serialization

This way the 32-bit host can cast them down to 32-bit integers when
needed, and the serialization pipeline can stay fixed. We're not passing
any pointers directly to the other application anyway so this should be
safe!
This commit is contained in:
Robbert van der Helm
2020-04-29 17:17:33 +02:00
parent c9060e984d
commit 027d9a96d5
3 changed files with 31 additions and 10 deletions
+3 -1
View File
@@ -176,7 +176,9 @@ void Logger::log_event(bool is_dispatch,
[&](const std::vector<uint8_t>& buffer) {
message << "<" << buffer.size() << " byte chunk>";
},
[&](const intptr_t&) { message << "<nullptr>"; },
[&](const native_size_t& window_id) {
message << "<window " << window_id << ">";
},
[&](const AEffect&) { message << "<nullptr>"; },
[&](const DynamicVstEvents& events) {
message << "<" << events.events.size() << " midi_events>";