Incidencia #47465

api_methods_city_inspire_partisan() div by zero warning

Abrir Fecha: 2023-02-20 22:58 Última actualización: 2023-03-02 12:46

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

Details

Clang analyzer is warning that there's potential div by zero in api_methods_city_inspire_partisans(). There isn't - city always has some citizens. But the code could be simplified, and likely we would get rid of the warning as a bonus. As we now count all the citizens, could as well us city size directly.

Ticket History (3/4 Histories)

2023-02-20 22:58 Updated by: cazfi
  • New Ticket "api_methods_city_inspire_partisan() div by zero warning" created
2023-02-27 08:58 Updated by: cazfi
  • Propietario Update from (Ninguno) to cazfi
  • Resolución Update from Ninguno to Accepted
2023-03-02 12:46 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