add float & double representations to C-generator

This commit is contained in:
Michael Sippel 2025-03-18 14:07:14 +01:00
parent 65cd0b6853
commit 5d1ea93e20
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -30,6 +30,10 @@ pub fn get_c_repr_type(dict: &mut impl TypeDict, t: laddertypes::TypeTerm, skip_
Some("uint32_t".into())
} else if t == &dict.parse("x86.UInt64").expect("parse") {
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 {
match t {
laddertypes::TypeTerm::App(args) => {