Skip to content

Commit 6db2e75

Browse files
committed
Updated bindgen version to fix build bug
1 parent 262dc88 commit 6db2e75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lightgbm-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ cuda = []
1616
libc = "0.2.81"
1717

1818
[build-dependencies]
19-
bindgen = "0.56.0"
19+
bindgen = "0.68"
2020
cmake = "0.1"

src/booster.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ impl Booster {
178178
self.handle,
179179
feature_name_length as i32,
180180
&mut num_feature_names,
181-
num_feature as u64,
181+
num_feature as usize,
182182
&mut out_buffer_len,
183183
out_strs.as_ptr() as *mut *mut c_char
184184
))?;

0 commit comments

Comments
 (0)