fix windows function pointer return

This commit is contained in:
Luke Boswell 2023-09-12 20:22:37 +10:00 committed by Folkert
parent 04ff184466
commit e76c63f448
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 36 additions and 11 deletions

View file

@ -61,6 +61,13 @@ impl FloatWidth {
_ => None,
}
}
pub const fn type_name(&self) -> &'static str {
match self {
Self::F32 => "f32",
Self::F64 => "f64",
}
}
}
#[repr(u8)]