Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Bug #868905

Division by zero when transforming unit that had zero move rate

Added by Marko Lindqvist over 1 year ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Category:
Server
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Reported by soundfury in irc:

<soundnfury> in transform_unit() if old_mr is zero a SIGFPE can occur
<soundnfury> (it's not a blocker for me, because the thing I wanted to do in my ruleset that tickled it doesn't actually work anyway, but I thought I should mention it to someone)
<soundnfury> probably the thing to do is "punit->moves_left = old_mr ? current_calculation() : unit_move_rate(punit)"
<soundnfury> (i.e. define 0/0 as 1)

History

#2 Updated by Marko Lindqvist over 1 year ago

  • Status changed from Resolved to Closed
  • Assignee set to Marko Lindqvist

#3 Updated by Marko Lindqvist 9 months ago

  • Sprint/Milestone changed from 2.6.3 to 2.6.2.1

Also available in: Atom PDF