Skip to content

Commit 15635d0

Browse files
committed
Support f64 as a primitive type
1 parent 8f4db29 commit 15635d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

c-bindings-gen/src/types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,7 @@ impl<'mod_lifetime, 'crate_lft: 'mod_lifetime> ImportResolver<'mod_lifetime, 'cr
548548
Self::insert_primitive(&mut imports, "bool");
549549
Self::insert_primitive(&mut imports, "u128");
550550
Self::insert_primitive(&mut imports, "i64");
551+
Self::insert_primitive(&mut imports, "f64");
551552
Self::insert_primitive(&mut imports, "u64");
552553
Self::insert_primitive(&mut imports, "u32");
553554
Self::insert_primitive(&mut imports, "u16");
@@ -950,6 +951,7 @@ impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
950951
match full_path {
951952
"bool" => true,
952953
"i64" => true,
954+
"f64" => true,
953955
"u64" => true,
954956
"u32" => true,
955957
"u16" => true,

0 commit comments

Comments
 (0)