@@ -107,7 +107,7 @@ int main(int argc, char *argv[]) {
107107 string pred = hdt->getDictionary ()->idToString (i+1 , PREDICATE);
108108
109109 IteratorTripleString *it1 = hdt->search (" " ,pred.c_str ()," " );
110- int numResults = it1->estimatedNumResults ();
110+ size_t numResults = it1->estimatedNumResults ();
111111
112112 // check label
113113 IteratorTripleString *itlabel = hdt->search (pred.c_str (),label.c_str ()," " );
@@ -139,7 +139,7 @@ int main(int argc, char *argv[]) {
139139 string subj = hdt->getDictionary ()->idToString (i, SUBJECT);
140140
141141 IteratorTripleString *it1 = hdt->search (subj.c_str ()," " ," " );
142- int numResults = it1->estimatedNumResults ();
142+ size_t numResults = it1->estimatedNumResults ();
143143 if (i<hdt->getDictionary ()->getNshared ()){
144144 IteratorTripleString* it2 = hdt->search (" " ," " ,subj.c_str ());
145145 numResults+=it2->estimatedNumResults ();
@@ -174,7 +174,7 @@ int main(int argc, char *argv[]) {
174174 string obj = hdt->getDictionary ()->idToString (i+1 , OBJECT);
175175
176176 IteratorTripleString *it1 = hdt->search (" " ," " ,obj.c_str ());
177- int numResults = it1->estimatedNumResults ();
177+ size_t numResults = it1->estimatedNumResults ();
178178 if (!onlyURIs||obj.at (0 )!=' "' ){
179179 *outT<<obj<<" ;" <<numResults<<endl;
180180 }
0 commit comments