Skip to content

Commit

Permalink
Fix fn_typed macro arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
rroelke committed Mar 20, 2024
1 parent f7513c2 commit a6f1318
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions tiledb/api/src/datatype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,43 +4,43 @@ macro_rules! fn_typed {
type Datatype = $crate::Datatype;
match $datatype {
Datatype::Int8 => {
let $func = $func::<i8>();
let $func = $func::<i8>($($arg,)*);
$then
}
Datatype::Int16 => {
let $func = $func::<i16>();
let $func = $func::<i16>($($arg,)*);
$then
}
Datatype::Int32 => {
let $func = $func::<i32>();
let $func = $func::<i32>($($arg,)*);
$then
}
Datatype::Int64 => {
let $func = $func::<i64>();
let $func = $func::<i64>($($arg,)*);
$then
}
Datatype::UInt8 => {
let $func = $func::<u8>();
let $func = $func::<u8>($($arg,)*);
$then
}
Datatype::UInt16 => {
let $func = $func::<u16>();
let $func = $func::<u16>($($arg,)*);
$then
}
Datatype::UInt32 => {
let $func = $func::<u32>();
let $func = $func::<u32>($($arg,)*);
$then
}
Datatype::UInt64 => {
let $func = $func::<u64>();
let $func = $func::<u64>($($arg,)*);
$then
}
Datatype::Float32 => {
let $func = $func::<f32>();
let $func = $func::<f32>($($arg,)*);
$then
}
Datatype::Float64 => {
let $func = $func::<f64>();
let $func = $func::<f64>($($arg,)*);
$then
}
Datatype::Char => unimplemented!(),
Expand Down Expand Up @@ -83,43 +83,43 @@ macro_rules! fn_typed {
type Datatype = $crate::Datatype;
match $datatype {
Datatype::Int8 => {
let $func = $obj.$func::<i8>();
let $func = $obj.$func::<i8>($($arg,)*);
$then
}
Datatype::Int16 => {
let $func = $obj.$func::<i16>();
let $func = $obj.$func::<i16>($($arg,)*);
$then
}
Datatype::Int32 => {
let $func = $obj.$func::<i32>();
let $func = $obj.$func::<i32>($($arg,)*);
$then
}
Datatype::Int64 => {
let $func = $obj.$func::<i64>();
let $func = $obj.$func::<i64>($($arg,)*);
$then
}
Datatype::UInt8 => {
let $func = $obj.$func::<u8>();
let $func = $obj.$func::<u8>($($arg,)*);
$then
}
Datatype::UInt16 => {
let $func = $obj.$func::<u16>();
let $func = $obj.$func::<u16>($($arg,)*);
$then
}
Datatype::UInt32 => {
let $func = $obj.$func::<u32>();
let $func = $obj.$func::<u32>($($arg,)*);
$then
}
Datatype::UInt64 => {
let $func = $obj.$func::<u64>();
let $func = $obj.$func::<u64>($($arg,)*);
$then
}
Datatype::Float32 => {
let $func = $obj.$func::<f32>();
let $func = $obj.$func::<f32>($($arg,)*);
$then
}
Datatype::Float64 => {
let $func = $obj.$func::<f64>();
let $func = $obj.$func::<f64>($($arg,)*);
$then
}
Datatype::Char => unimplemented!(),
Expand Down

0 comments on commit a6f1318

Please sign in to comment.