Summary: Harmless errors in city report sorting
Submitted by: jtn
Submitted on: Sat Aug 10 21:04:31 2013
Severity: 2 - Minor
Priority: 5 - Normal
Status: In Progress
Assigned to: jtn
Discussion Lock: Any
Operating System: Any
Planned Release: 2.3.5,2.4.1,2.5.0,2.6.0
Spotted in passing:
0 The code to split report cells into lists of alternating strings and numbers
duplicated strings (e.g., "Foo (30/60)" was split as ["Foo (", 30.0, "30/",
60.0, "60)"]. This didn't matter as the list was only ever used for sorting, I
think, so the error made no difference.
0 While I'm in there, may as well check the errno return from strtof() and
treat anything giving an error (probably ERANGE) as not being a number.
Reply to this item at:
Message sent via/by Gna!
Freeciv-dev mailing list