File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -183,9 +183,12 @@ impl CallInDescriptor {
183
183
/// Create a new `descriptor` that will call `routine`.
184
184
pub fn new ( routine : CString ) -> Self {
185
185
use crate :: craw:: ydb_string_t;
186
+ use std:: os:: raw:: c_ulong;
186
187
187
- let string =
188
- ydb_string_t { length : routine. as_bytes ( ) . len ( ) as u64 , address : routine. into_raw ( ) } ;
188
+ let string = ydb_string_t {
189
+ length : routine. as_bytes ( ) . len ( ) as c_ulong ,
190
+ address : routine. into_raw ( ) ,
191
+ } ;
189
192
Self ( ci_name_descriptor { rtn_name : string, handle : std:: ptr:: null_mut ( ) } )
190
193
}
191
194
/// Consume this descriptor and return the original routine
Original file line number Diff line number Diff line change @@ -1822,6 +1822,7 @@ pub fn lock_st(
1822
1822
}
1823
1823
#[ cfg( target_pointer_width = "32" ) ]
1824
1824
{
1825
+ let tptoken = tptoken. 0 ;
1825
1826
#[ cfg( target_endian = "little" ) ]
1826
1827
{
1827
1828
arg[ 0 ] = ( tptoken & 0xffffffff ) as Void ;
You can’t perform that action at this time.
0 commit comments