File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ use std::sync::atomic::Ordering;
4
4
use harp:: exec:: RFunction ;
5
5
use harp:: exec:: RFunctionExt ;
6
6
use harp:: utils:: r_str_to_owned_utf8_unchecked;
7
+ use harp:: utils:: r_typeof;
7
8
8
9
use crate :: interface:: RMain ;
9
10
use crate :: interface:: CAPTURE_CONSOLE_OUTPUT ;
@@ -81,10 +82,10 @@ pub extern "C" fn ark_trace_back_rs() -> *const ffi::c_char {
81
82
#[ no_mangle]
82
83
pub extern "C" fn ark_display_value_rs ( x : libr:: SEXP ) -> * const ffi:: c_char {
83
84
let value = unsafe {
84
- let kind = tidy_kind ( libr :: TYPEOF ( x) as u32 ) ;
85
+ let kind = tidy_kind ( r_typeof ( x) ) ;
85
86
let tag = format ! ( "<{kind}>" ) ;
86
87
87
- match libr :: TYPEOF ( x) as u32 {
88
+ match r_typeof ( x) {
88
89
libr:: SYMSXP => format ! (
89
90
"{tag} ({name})" ,
90
91
name = r_str_to_owned_utf8_unchecked( libr:: PRINTNAME ( x) )
You can’t perform that action at this time.
0 commit comments