Use correct literal suffix for size_type.

`std::vector<T,Allocator>::size` returns `size_type`. `%ld` works
fine on 64 bit arches, but fails on 32 bit.

Ref.: https://en.cppreference.com/w/cpp/container/vector/size
      https://en.cppreference.com/w/cpp/types/size_t
This commit is contained in:
Guido Falsi 2024-04-03 16:07:11 +02:00
parent b33b864c2f
commit ca826d155b

View File

@ -847,7 +847,7 @@ gnc_gen_trans_assign_transfer_account_to_selection_cb (GtkMenuItem *menuitem,
bool is_selection = true;
auto debugging_enabled{qof_log_check (G_LOG_DOMAIN, QOF_LOG_DEBUG)};
DEBUG("Rows in selection = %ld", selected_refs.size());
DEBUG("Rows in selection = %zu", selected_refs.size());
for (const auto& ref : selected_refs)
{