File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ impl BackgroundWorker {
130
130
131
131
unsafe {
132
132
#[ cfg( feature = "pg10" ) ]
133
- pg_sys:: BackgroundWorkerInitializeConnection ( db as * mut i8 , user as * mut i8 ) ;
133
+ pg_sys:: BackgroundWorkerInitializeConnection ( db as * mut c_char , user as * mut c_char ) ;
134
134
135
135
#[ cfg( any( feature = "pg11" , feature = "pg12" , feature = "pg13" ) ) ]
136
136
pg_sys:: BackgroundWorkerInitializeConnection ( db, user, 0 ) ;
@@ -441,13 +441,13 @@ type RpgffiChar = RpgffiChar64;
441
441
#[ cfg( any( feature = "pg11" , feature = "pg12" , feature = "pg13" ) ) ]
442
442
type RpgffiChar = RpgffiChar96 ;
443
443
444
- struct RpgffiChar64 ( [ i8 ; 64 ] ) ;
444
+ struct RpgffiChar64 ( [ c_char ; 64 ] ) ;
445
445
446
446
impl < ' a > From < & ' a str > for RpgffiChar64 {
447
447
fn from ( string : & str ) -> Self {
448
448
let mut r = [ 0 ; 64 ] ;
449
449
for ( dest, src) in r. iter_mut ( ) . zip ( string. as_bytes ( ) ) {
450
- * dest = * src as i8 ;
450
+ * dest = * src as c_char ;
451
451
}
452
452
RpgffiChar64 ( r)
453
453
}
You can’t perform that action at this time.
0 commit comments