Commit bb3e078e authored by Jesus Fernandez's avatar Jesus Fernandez Committed by Jesus Fernandez
Browse files

Fix division by zero


CID 191124 (#1 of 1): Division or modulo by float zero (DIVIDE_BY_ZERO)
3. divide_by_zero: In expression 60. / (double)numberOfFiles, division by expression numberOfFiles which may be zero has undefined behavior.

CID 191125 (#1 of 1): Division or modulo by float zero (DIVIDE_BY_ZERO)
3. divide_by_zero: In expression 27. / (double)numberOfIndices, division by expression numberOfIndices which may be zero has undefined behavior.

Change-Id: If4f4a6795c1dfcae904ef7279ab25a1f855a6387
Reviewed-by: default avatarKarsten Heimrich <karsten.heimrich@qt.io>
parent bc7ed4f1
No related merge requests found
Showing with 3 additions and 3 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment