Skip to content

Commit

Permalink
Bump bindgen to 0.69.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
James2022-rgb committed Jan 25, 2024
1 parent 3f2eb69 commit c74d085
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ thiserror = "1.0"
scopeguard = "1.1"
serde = { version = "1.0.145", features = ["derive"] }
serde_json = "1.0"
bindgen = "0.60.1"
bindgen = "0.69.2"

[target.'cfg(target_os = "windows")'.build-dependencies]
kernel32-sys = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ pub unsafe fn compile(

if option_flags.contains(CompileOptionFlags::AddOpSource) {
let code_c_str = CStr::from_ptr(input.code);
glslang_program_add_source_text(program, input.stage, code_c_str.as_ptr(), code_c_str.to_str().unwrap().len() as size_t);
glslang_program_add_source_text(program, input.stage, code_c_str.as_ptr(), code_c_str.to_str().unwrap().len());

if let Some(source_file_name) = source_file_name {
let source_file_name_c_string = std::ffi::CString::new(source_file_name).unwrap();
Expand Down

0 comments on commit c74d085

Please sign in to comment.