Skip to content

Commit e2d652a

Browse files
committed
Style.
1 parent 8445301 commit e2d652a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/bitcoin/database/impl/query/height.ipp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,8 @@ header_links CLASS::get_confirmed_headers(size_t first,
263263
return {};
264264

265265
// add1(top) cannot overflow, as indexed block maximum cannot exceed size_t.
266-
limit = std::min(limit, add1(top) - first);
267-
auto last = first + sub1(limit);
266+
limit = std::min(limit, add1(top - first));
267+
auto last = sub1(first + limit);
268268

269269
// Due to reorganization it is possible for this height to now be terminal.
270270
auto link = to_confirmed(last);

0 commit comments

Comments
 (0)