Skip to content

Commit

Permalink
Parse/reserve f32/f64/double types
Browse files Browse the repository at this point in the history
  • Loading branch information
maximecb committed Oct 11, 2023
1 parent c616256 commit 7fa7e71
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ncc/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,9 @@ fn parse_type_atom(input: &mut Input) -> Result<Type, ParseError>
"int" => Ok(Type::Int(32)),
"long" => Ok(Type::Int(64)),

"float" => Ok(Type::Float(32)),
// Floating-point types
"float" | "f32" => Ok(Type::Float(32)),
"double" | "f64" => Ok(Type::Float(64)),

// Unsigned qualifier
"unsigned" => {
Expand Down

0 comments on commit 7fa7e71

Please sign in to comment.