Skip to content

Commit 7d1ed68

Browse files
Fix narrowing conversion
1 parent 6492005 commit 7d1ed68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libtrn/rthread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2044,7 +2044,7 @@ static int article_order_author(const Article **art1, const Article **art2)
20442044

20452045
static int article_order_number(const Article **art1, const Article **art2)
20462046
{
2047-
const int eq{article_num(*art1).value_of() - article_num(*art2).value_of()};
2047+
const long eq{(article_num(*art1) - article_num(*art2)).value_of()};
20482048
return eq > 0 ? g_sel_direction : -g_sel_direction;
20492049
}
20502050

0 commit comments

Comments
 (0)