Follow-up Comment #2, bug #14418 (project freeciv):

The only reference to this kind of algorithm I found was the line:
-    base_order = fc_calloc(nmod + (4 - (nmod % 4)), sizeof(*base_order));
which is replaced in this patch with: base_order = fc_calloc(4 *
((num_base_types + 3) / 4), sizeof(*base_order));

Then if this the value is num_base_types is multiple of 4, it should work
correctly.


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?14418>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to