Simplify stream_less

This commit is contained in:
Tatsuhiro Tsujikawa 2019-03-04 23:28:27 +09:00
parent 816ad2102f
commit c2434dfbbc
1 changed files with 1 additions and 5 deletions

View File

@ -52,11 +52,7 @@ static int stream_less(const void *lhsx, const void *rhsx) {
return lhs->seq < rhs->seq;
}
if (lhs->cycle < rhs->cycle) {
return rhs->cycle - lhs->cycle <= NGHTTP2_MAX_CYCLE_DISTANCE;
}
return lhs->cycle - rhs->cycle > NGHTTP2_MAX_CYCLE_DISTANCE;
return rhs->cycle - lhs->cycle <= NGHTTP2_MAX_CYCLE_DISTANCE;
}
void nghttp2_stream_init(nghttp2_stream *stream, int32_t stream_id,