[Freeciv-tickets] [freeciv] #47961: dai_select_tech() using A_LAST instead of A_ARRAY_SIZE for array length

Back to archive index
OSDN Ticket System norep****@osdn*****
Mon Jun 12 09:04:39 JST 2023


#47961: dai_select_tech() using A_LAST instead of A_ARRAY_SIZE for array length

  Open Date: 2023-04-28 00:11
Last Update: 2023-06-12 03:04

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/47961
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47961

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2023-06-12 03:04 Updated by: cazfi
 * Milestone Update from (None) to 3.0.9


---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: (None)
          Type: Bugs
        Status: Open
      Priority: 5 - Medium
     MileStone: 3.0.9
     Component: AI
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

dai_select_tech():
  int values[MAX(A_LAST, A_UNSET + 1)];
  int goal_values[MAX(A_LAST, A_UNSET + 1)];
A_ARRAY_SIZE should be used instead of A_LAST in places like this. There's no hard bug at the moment, as 'A_UNSET + 1' is the bigger value anyway.

-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/47961
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=47961



More information about the Freeciv-tickets mailing list
Back to archive index