add float & double representations to C-generator
This commit is contained in:
parent
65cd0b6853
commit
5d1ea93e20
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ pub fn get_c_repr_type(dict: &mut impl TypeDict, t: laddertypes::TypeTerm, skip_
|
||||||
Some("uint32_t".into())
|
Some("uint32_t".into())
|
||||||
} else if t == &dict.parse("x86.UInt64").expect("parse") {
|
} else if t == &dict.parse("x86.UInt64").expect("parse") {
|
||||||
Some("uint64_t".into())
|
Some("uint64_t".into())
|
||||||
|
} else if t == &dict.parse("native.Float").expect("parse") {
|
||||||
|
Some("float".into())
|
||||||
|
} else if t == &dict.parse("native.Double").expect("parse") {
|
||||||
|
Some("double".into())
|
||||||
} else {
|
} else {
|
||||||
match t {
|
match t {
|
||||||
laddertypes::TypeTerm::App(args) => {
|
laddertypes::TypeTerm::App(args) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue