#44130: path_finding.c: Asserts comparing things to TRUE Open Date: 2022-03-17 03:59 Last Update: 2022-03-17 21:39 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/44130 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44130 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-03-17 21:39 Updated by: cazfi * Milestone Update from (None) to 3.0.2 --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: (None) Type: Bugs Status: Open Priority: 5 - Medium MileStone: 3.0.2 Component: General Severity: 5 - Medium Resolution: None --------------------------------------------------------------------- Ticket details: path_finding.c has some asserts where a value is compared to TRUE with a '=='. One should not do that as TRUE is a macro with specific value (1), and does not match other (non-zero) values though those too indicate true. -- 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/44130 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=44130