Skip to content

Commit 9f38625

Browse files
committed
address review comments
1 parent 478545d commit 9f38625

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/subcommand/diff_subcommand.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,12 @@ void diff_subcommand::print_diff(diff_wrapper& diff, bool use_colour)
224224
if (m_find_renames_flag || m_find_copies_flag)
225225
{
226226
find_opts.flags |= GIT_DIFF_FIND_RENAMES;
227-
find_opts.rename_threshold = (uint16_t)m_rename_threshold;
227+
find_opts.rename_threshold = m_rename_threshold;
228228
}
229229
if (m_find_copies_flag)
230230
{
231231
find_opts.flags |= GIT_DIFF_FIND_COPIES;
232-
find_opts.copy_threshold = (uint16_t)m_copy_threshold;
232+
find_opts.copy_threshold = m_copy_threshold;
233233
}
234234
if (m_find_copies_harder_flag)
235235
{

src/subcommand/diff_subcommand.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ class diff_subcommand
3838
bool m_patience_flag = false;
3939
bool m_minimal_flag = false;
4040

41-
uint m_rename_threshold = 50;
41+
uint16_t m_rename_threshold = 50;
4242
bool m_find_renames_flag = false;
43-
uint m_copy_threshold = 50;
43+
uint16_t m_copy_threshold = 50;
4444
bool m_find_copies_flag = false;
4545
bool m_find_copies_harder_flag = false;
4646
bool m_break_rewrites_flag = false;

0 commit comments

Comments
 (0)