repc: Fix warning in generated code


Check the array bounds using sizeof before access to make the compiler
happy.

Otherwise the following warning is generated:

warning: array subscript 1 is above array bounds of ‘const int [1]’ [-Warray-bounds]

Pick-to: 6.2 6.3 6.4
Fixes: QTBUG-97790
Change-Id: I52b36b065b9f62188e5bfc157081650ca3ee159e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Brett Stottlemyer <bstottle@ford.com>
commitacd888220b9d600fe057249d43bd3934ae0cbad5
parent55d6e3a8d92f42a33cc6f798f1fc957ff5b9fdf7
authorDominik Holland <dominik.holland@qt.io>
committerDominik Holland <dominik.holland@qt.io>
commit timeThu, 28 Jul 2022 18:09:23 +0200