URL: <http://gna.org/bugs/?24086>
Summary: pf_fuel_map_create_segment: warning: comparison is always true due to limited range of data typee Project: Freeciv Submitted by: cazfi Submitted on: Sun 15 Nov 2015 06:57:49 PM EET Category: general Severity: 3 - Normal Priority: 5 - Normal Status: None Assigned to: None Originator Email: Open/Closed: Open Release: S2_5 Discussion Lock: Any Operating System: None Planned Release: 2.5.2 _______________________________________________________ Details: common/aicore/path_finding.c: In function 'pf_fuel_map_create_segment': common/aicore/path_finding.c:2186: warning: comparison is always true due to limited range of data type It certainly is and the code in question is an assert about it: fc_assert(256 > node1->size_alloc); /* node1->size_alloc has only 8 bits. */ _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?24086> _______________________________________________ Message sent via/by Gna! http://gna.org/ _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev