[bugfix] rope_at

This commit is contained in:
Yuichi Nishiwaki 2016-02-19 03:57:15 +09:00
parent bb2f9c0367
commit ec9c0e8841
1 changed files with 1 additions and 1 deletions

View File

@ -120,8 +120,8 @@ rope_at(struct pic_rope *x, size_t i)
if (i < x->left->weight) {
x = x->left;
} else {
x = x->right;
i -= x->left->weight;
x = x->right;
}
}
return -1;