projects
/
ldk-c-bindings
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
8f4db29
)
Support `f64` as a primitive type
author
Matt Corallo
<git@bluematt.me>
Tue, 26 Sep 2023 00:37:11 +0000
(
00:37
+0000)
committer
Matt Corallo
<git@bluematt.me>
Tue, 26 Sep 2023 00:37:11 +0000
(
00:37
+0000)
c-bindings-gen/src/types.rs
patch
|
blob
|
history
diff --git
a/c-bindings-gen/src/types.rs
b/c-bindings-gen/src/types.rs
index 6d97ccc32ffb10357bf020c2eefe8c56bea01b78..99b333c01d5fbfc723a9e11a11d6b191bbf84bf7 100644
(file)
--- a/
c-bindings-gen/src/types.rs
+++ b/
c-bindings-gen/src/types.rs
@@
-548,6
+548,7
@@
impl<'mod_lifetime, 'crate_lft: 'mod_lifetime> ImportResolver<'mod_lifetime, 'cr
Self::insert_primitive(&mut imports, "bool");
Self::insert_primitive(&mut imports, "u128");
Self::insert_primitive(&mut imports, "i64");
+ Self::insert_primitive(&mut imports, "f64");
Self::insert_primitive(&mut imports, "u64");
Self::insert_primitive(&mut imports, "u32");
Self::insert_primitive(&mut imports, "u16");
@@
-950,6
+951,7
@@
impl<'a, 'c: 'a> TypeResolver<'a, 'c> {
match full_path {
"bool" => true,
"i64" => true,
+ "f64" => true,
"u64" => true,
"u32" => true,
"u16" => true,