diff --git a/Cargo.toml b/Cargo.toml index 28c3425..b81f8b7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/src/lib.rs b/src/lib.rs index c33ca9c..2b9031b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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();