Skip to content

Commit 969762a

Browse files
committed
fixes
1 parent 18ba8f7 commit 969762a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/LightGBM/train_share_states.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class MultiValBinWrapper {
2323
MultiValBinWrapper(MultiValBin* bin, data_size_t num_data,
2424
const std::vector<int>& feature_groups_contained, const int num_grad_quant_bins);
2525

26-
bool const IsSparse() {
26+
bool IsSparse() const {
2727
if (multi_val_bin_ != nullptr) {
2828
return multi_val_bin_->IsSparse();
2929
}

include/LightGBM/utils/byte_buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct ByteBuffer final : public BinaryWriter {
5050
return buffer_.at(index);
5151
}
5252

53-
LIGHTGBM_EXPORT char* Data() const {
53+
LIGHTGBM_EXPORT char* Data() {
5454
return buffer_.data();
5555
}
5656

0 commit comments

Comments
 (0)