Opened 8 years ago

Closed 8 years ago

#11357 closed defect (fixed)

off-by-one error when searching with nth:

Reported by: naoliv Owned by: team
Priority: normal Milestone: 15.04
Component: Core Version:
Keywords: Cc:


Download way 292982894 without selecting the referrers or members.
Try to search for nth:1 and note how it's finding the second node, instead the first one.
w292982894 is made from 4 nodes: 2965414055, 2965414056, 2965414057, 2965414058, in this order.

It seems that there is some kind of off-by-one error somewhere, since we can't search for nth:0 and nth:3 returns the last node (the fourth).

The help message says that we can search for the n-th node of a way using this (but it doesn't work for the first node)

You can also draw a two-nodes way and try to find the first node.

Attachments (0)

Change History (1)

comment:1 Changed 8 years ago by simon04

Milestone: 15.04
Resolution: fixed
Status: newclosed

The search is 0 indexed. nth:0 is possible since r8250.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.