summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/weights.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/weights.cc b/utils/weights.cc
index 1f66c441..7d5d96d4 100644
--- a/utils/weights.cc
+++ b/utils/weights.cc
@@ -147,7 +147,7 @@ void Weights::ShowLargestFeatures(const vector<weight_t>& w) {
vector<int> fnums(w.size());
for (unsigned i = 0; i < w.size(); ++i)
fnums[i] = i;
- int nf = FD::NumFeats();
+ int nf = w.size();
if (nf > 10) nf = 10;
vector<int>::iterator mid = fnums.begin();
mid += nf;