mirror of
https://git.freebsd.org/ports.git
synced 2025-07-14 15:59:18 -04:00
18 lines
628 B
C
18 lines
628 B
C
--- search.c.orig
|
|
+++ search.c
|
|
@@ -520,11 +520,11 @@
|
|
r != sorted.end() && max_results-- > 0 && out; ++r
|
|
) {
|
|
// cast gets rid of warning
|
|
- int rank = static_cast<int>( r->second * normalize );
|
|
- if ( !rank )
|
|
- rank = 1;
|
|
+ int my_rank = static_cast<int>( r->second * normalize );
|
|
+ if ( !my_rank )
|
|
+ my_rank = 1;
|
|
format->result(
|
|
- rank,
|
|
+ my_rank,
|
|
file_info(
|
|
reinterpret_cast<unsigned char const*>( files[ r->first ] )
|
|
)
|