PipeWire: Eplicitly cast uint32_t to qsizetype
Fixes compilation for 32 bit builds:
/src/qt/qtmultimedia/src/multimedia/pipewire/
qpipewire_support.cpp:82:51: error: non-constant-expression cannot be
narrowed from type 'uint32_t' (aka 'unsigned int') to 'qsizetype' (aka
'int') in initializer list [-Wc++11-narrowing]
82 | QSpan<const spa_dict_item> items{ dict.items, dict.n_items };
| ^~~~~~~~~~~~
/src/qt/qtmultimedia/src/multimedia/pipewire/
qpipewire_support.cpp:82:51: note: insert an explicit cast to silence
this issue
82 | QSpan<const spa_dict_item> items{ dict.items, dict.n_items };
| ^~~~~~~~~~~~
|
static_cast<qsizetype>( )
1 error generated.
Credit to OSS-Fuzz for finding this in their github-actions test.
Change-Id: I8b8bf2c1ee91e1841a55cfca935d0c15f39449f3
Pick-to: 6.12
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>