Incidencia #44449

count_ *_near_tile() theoretical division by zero

Abrir Fecha: 2022-04-24 07:52 Última actualización: 2022-05-04 23:01

Informador:
Propietario:
Tipo:
Estado:
Cerrado
Componente:
Prioridad:
5 - Medium
Gravedad:
5 - Medium
Resolución:
Fixed
Fichero:
1

Details

Clang static analyzer complains about a number of count_*_near_tile() functions that first iterate adjacent tiles, and count them in the process, and then use that total as a divider. While the iteration can go over less-than-number-of-directions tiles when on the edge of the world, it would result in zero only for a single tile world. So this is more about silencing the report than fixing an actual bug.

Ticket History (3/4 Histories)

2022-04-24 07:52 Updated by: cazfi
  • New Ticket "count_ *_near_tile() theoretical division by zero" created
2022-04-24 19:28 Updated by: cazfi
  • Propietario Update from (Ninguno) to cazfi
  • Resolución Update from Ninguno to Accepted
  • Hito Update from (Ninguno) to 3.0.2 (cerrado)
2022-05-04 23:01 Updated by: cazfi
  • Estado Update from Open to Cerrado
  • Resolución Update from Accepted to Fixed

Editar

Please login to add comment to this ticket » Entrar