Skip to content

Commit

Permalink
Fix code scanning alert no. 67: Multiplication result converted to la…
Browse files Browse the repository at this point in the history
…rger type

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
  • Loading branch information
tsteven4 and github-advanced-security[bot] authored Dec 3, 2024
1 parent a460fb5 commit c33de6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gbfile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ gbfread(QString& buf, const gbsize_t size,
const gbsize_t members, gbfile* file)
{
QByteArray tmp;
tmp.resize(members * size);
tmp.resize(static_cast<qsizetype>(members) * size);
gbsize_t retval = gbfread(tmp.data(), size, members, file);
buf = QString(tmp);
return retval;
Expand Down

0 comments on commit c33de6c

Please sign in to comment.