mirror of
https://git.freebsd.org/ports.git
synced 2025-05-15 08:41:51 -04:00
fix the build on FreeBSD 12.0 - delete the 'register' keyword everywhere - Add whitespace between adjacent quoted strings - Update the offsetof() macro to cast the result to int Reported by: pkg-fallout
22 lines
900 B
C++
22 lines
900 B
C++
--- src/sphinxsort.cpp.orig 2018-02-03 10:36:00 UTC
|
|
+++ src/sphinxsort.cpp
|
|
@@ -3395,15 +3395,15 @@ struct MatchExpr_fn : public ISphMatchComparator
|
|
case SPH_KEYPART_WEIGHT: SPH_TEST_PAIR ( a.m_iWeight, b.m_iWeight, _idx ); break; \
|
|
case SPH_KEYPART_INT: \
|
|
{ \
|
|
- register SphAttr_t aa = a.GetAttr ( t.m_tLocator[_idx] ); \
|
|
- register SphAttr_t bb = b.GetAttr ( t.m_tLocator[_idx] ); \
|
|
+ SphAttr_t aa = a.GetAttr ( t.m_tLocator[_idx] ); \
|
|
+ SphAttr_t bb = b.GetAttr ( t.m_tLocator[_idx] ); \
|
|
SPH_TEST_PAIR ( aa, bb, _idx ); \
|
|
break; \
|
|
} \
|
|
case SPH_KEYPART_FLOAT: \
|
|
{ \
|
|
- register float aa = a.GetAttrFloat ( t.m_tLocator[_idx] ); \
|
|
- register float bb = b.GetAttrFloat ( t.m_tLocator[_idx] ); \
|
|
+ float aa = a.GetAttrFloat ( t.m_tLocator[_idx] ); \
|
|
+ float bb = b.GetAttrFloat ( t.m_tLocator[_idx] ); \
|
|
SPH_TEST_PAIR ( aa, bb, _idx ) \
|
|
break; \
|
|
} \
|