Skip to content

Commit

Permalink
add additional float types
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyluig authored and xlab committed Sep 6, 2023
1 parent 591bf68 commit a1822f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions translator/ast_walker.go
Expand Up @@ -370,11 +370,11 @@ func (t *Translator) typeSpec(typ cc.Type, name string, deep int, isConst bool,
spec.Base = "long"
spec.Long = true
spec.Unsigned = true
case cc.Float:
case cc.Float, cc.Float32, cc.Float32x:
spec.Base = "float"
case cc.Double:
case cc.Double, cc.Float64, cc.Float64x:
spec.Base = "double"
case cc.LongDouble:
case cc.LongDouble, cc.Float128, cc.Float128x:
spec.Base = "double"
spec.Long = true
case cc.Bool:
Expand Down

0 comments on commit a1822f0

Please sign in to comment.