Merge pull request #330634 from r-ryantm/auto-update/circumflex
[NixPkgs.git] / pkgs / servers / nosql / influxdb2 / fix-unsigned-char.patch
blob173e5b30e5ee12f49716071a5aa19d3ed46c2af2
1 diff --git a/flux/src/cffi.rs b/flux/src/cffi.rs
2 index ba18e3d5..0c1badf8 100644
3 --- a/flux/src/cffi.rs
4 +++ b/flux/src/cffi.rs
5 @@ -1149,7 +1149,7 @@ from(bucket: v.bucket)
6 fn parse_with_invalid_utf8() {
7 let cfname = CString::new("foo.flux").unwrap();
8 let cfname_ptr: *const c_char = cfname.as_ptr();
9 - let v: Vec<c_char> = vec![-61, 0];
10 + let v: Vec<c_char> = vec![-61i8 as c_char, 0];
11 let csrc: *const c_char = &v[0];
12 // Safety: both pointers are valid
13 let pkg = unsafe { flux_parse(cfname_ptr, csrc) };