Skip to content

Commit

Permalink
bug fix in get_group
Browse files Browse the repository at this point in the history
  • Loading branch information
guolinke committed Dec 18, 2016
1 parent a495a87 commit 97df068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/dataset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ bool Dataset::GetIntField(const char* field_name, int64_t* out_len, const int**
name = Common::Trim(name);
if (name == std::string("query") || name == std::string("group")) {
*out_ptr = metadata_.query_boundaries();
*out_len = metadata_.num_queries();
*out_len = metadata_.num_queries() + 1;
} else {
return false;
}
Expand Down

0 comments on commit 97df068

Please sign in to comment.