Opened 11 years ago

Closed 11 years ago

#8986 closed defect (fixed)

shrinksafe skips variables

Reported by: dante Owned by: dante
Priority: high Milestone: 1.4
Component: ShrinkSafe Version: 1.3.0b3
Keywords: Cc: Richard Backhouse
Blocked By: Blocking:

Description (last modified by dante)

Shrinksafe keeps a counter of replaced variables, though increases the pointer even when a variable cannot be shrunk. eg:

var one, two, b, three;

becomes:

var _1, _2, b, _4; 

the expected output would be:

var _1, _2, b, _3; 

It seems when shrinksafe discovers it's replaced variable is going to be longer than the variable it is to replace, it should simply skip using that token (_3) to be used in the next opportunity.

Attachments (1)

ss.patch (527 bytes) - added by dante 11 years ago.
easiest patch I've ever made. awesome.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 11 years ago by dante

Description: modified (diff)

Changed 11 years ago by dante

Attachment: ss.patch added

easiest patch I've ever made. awesome.

comment:2 Changed 11 years ago by Adam Peller

Milestone: future1.4

comment:3 Changed 11 years ago by Adam Peller

Resolution: fixed
Status: newclosed

committed dante's fix in [17149]

Note: See TracTickets for help on using tickets.