13
0

Fix macOS builds, size_t serialization

libs/ardour/session_state.cc:1500:13: note: in instantiation of
 function template specialization 'XMLNode::set_property<unsigned long>'
 requested here
libs/pbd/pbd/string_convert.h:151:11: error:
  type 'unsigned long' cannot be used prior to '::' because it
  has no members
This commit is contained in:
Robin Gareus 2022-05-21 07:44:39 +02:00
parent 411e031bab
commit e1905e779b
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1497,7 +1497,7 @@ Session::state (bool save_template, snapshot_t snapshot_type, bool only_used_ass
if (last > 0) {
idx = 0;
XMLNode* ms_node = new XMLNode (X_("MixerScenes"));
ms_node->set_property ("n_scenes", _mixer_scenes.size ());
ms_node->set_property ("n_scenes", (uint64_t) _mixer_scenes.size ());
for (auto const& i : _mixer_scenes) {
if (i && !i->empty ()) {
XMLNode& ms_state (i->get_state ());
@ -1912,7 +1912,7 @@ Session::set_state (const XMLNode& node, int version)
if ((child = find_named_node (node, "MixerScenes"))) {
Glib::Threads::RWLock::WriterLock lm (_mixer_scenes_lock);
size_t n_scenes = 0;
uint64_t n_scenes = 0;
child->get_property("n_scenes", n_scenes);
_mixer_scenes.resize (n_scenes);
for (auto const n : child->children () ) {