File tree Expand file tree Collapse file tree 2 files changed +18
-32
lines changed Expand file tree Collapse file tree 2 files changed +18
-32
lines changed Original file line number Diff line number Diff line change @@ -951,22 +951,15 @@ impl OwningNodeTable {
951
951
) ,
952
952
None => ( std:: ptr:: null ( ) , 0 . into ( ) ) ,
953
953
} ;
954
- let flags: ll_bindings:: tsk_flags_t = defaults. flags ( ) . bits ( ) ;
955
- let population: ll_bindings:: tsk_id_t = defaults. population ( ) . into ( ) ;
956
- let individual: ll_bindings:: tsk_id_t = defaults. individual ( ) . into ( ) ;
957
- let time: f64 = time. into ( ) . into ( ) ;
958
- let rv = unsafe {
959
- ll_bindings:: tsk_node_table_add_row (
960
- self . as_mut_ptr ( ) ,
961
- flags,
962
- time,
963
- population,
964
- individual,
965
- ptr,
966
- mdlen. into ( ) ,
967
- )
968
- } ;
969
- handle_tsk_return_value ! ( rv, rv. into( ) )
954
+ add_row_details (
955
+ defaults. flags ( ) . bits ( ) ,
956
+ time. into ( ) . into ( ) ,
957
+ defaults. population ( ) . into ( ) ,
958
+ defaults. individual ( ) . into ( ) ,
959
+ ptr,
960
+ mdlen. into ( ) ,
961
+ self . as_mut_ptr ( ) ,
962
+ )
970
963
}
971
964
}
972
965
Original file line number Diff line number Diff line change @@ -443,22 +443,15 @@ impl TableCollection {
443
443
) ,
444
444
None => ( std:: ptr:: null ( ) , 0 . into ( ) ) ,
445
445
} ;
446
- let flags: ll_bindings:: tsk_flags_t = defaults. flags ( ) . bits ( ) ;
447
- let population: ll_bindings:: tsk_id_t = defaults. population ( ) . into ( ) ;
448
- let individual: ll_bindings:: tsk_id_t = defaults. individual ( ) . into ( ) ;
449
- let time: f64 = time. into ( ) . into ( ) ;
450
- let rv = unsafe {
451
- ll_bindings:: tsk_node_table_add_row (
452
- & mut ( * self . as_mut_ptr ( ) ) . nodes ,
453
- flags,
454
- time,
455
- population,
456
- individual,
457
- ptr,
458
- mdlen. into ( ) ,
459
- )
460
- } ;
461
- handle_tsk_return_value ! ( rv, rv. into( ) )
446
+ crate :: node_table:: add_row_details (
447
+ defaults. flags ( ) . bits ( ) ,
448
+ time. into ( ) . into ( ) ,
449
+ defaults. population ( ) . into ( ) ,
450
+ defaults. individual ( ) . into ( ) ,
451
+ ptr,
452
+ mdlen. into ( ) ,
453
+ unsafe { & mut ( * self . as_mut_ptr ( ) ) . nodes } ,
454
+ )
462
455
}
463
456
464
457
/// Add a row with optional metadata to the node table
You can’t perform that action at this time.
0 commit comments