Use int instead of long to count people
Code dealing with counting people mixes int and long pretty haphazardly. Harmless, because practical populations fit into int easily on any machine capable of running the server. Clean up anyway.
This commit is contained in:
parent
948757cb0c
commit
5d7f011900
6 changed files with 12 additions and 12 deletions
|
@ -30,7 +30,7 @@
|
|||
* Thomas Ruschak, 1992
|
||||
* Ville Virrankoski, 1995
|
||||
* Steve McClure, 1997-2000
|
||||
* Markus Armbruster, 2004-2009
|
||||
* Markus Armbruster, 2004-2013
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
|
@ -180,7 +180,7 @@ calc_all(long p_sect[][2],
|
|||
{
|
||||
struct natstr *np;
|
||||
struct bp *bp;
|
||||
long pop = 0;
|
||||
int pop = 0;
|
||||
int n, civ_tax, uw_tax, mil_pay;
|
||||
struct sctstr *sp;
|
||||
int etu = etu_per_update;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue