cid#1607476 Overflowed return value

Change-Id: I38c72db66e47b0e09a53413457f167159c599202
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173524
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
This commit is contained in:
Caolán McNamara 2024-09-16 10:07:35 +01:00
parent d3959ecab9
commit b6d8c6e6fe

View file

@ -430,7 +430,7 @@ static hchar s_hh2ks(hchar hh)
return sal::static_int_cast<hchar>(tblhhtg_ks[hh - HCA_TG]);
}
hh -= HCA_KSS;
idx = hh / 0x60 + 161;
idx = sal::static_int_cast<hchar>(hh / 0x60 + 161);
i = hh % 0x60 + 160;
if (idx == 170)
idx += 2;