From a1822f0a09c1c6c89fc12aeb691a27b3221c73f3 Mon Sep 17 00:00:00 2001 From: Lujing Date: Tue, 5 Sep 2023 23:22:15 -0700 Subject: [PATCH] add additional float types --- translator/ast_walker.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/translator/ast_walker.go b/translator/ast_walker.go index f47702d..d826c16 100644 --- a/translator/ast_walker.go +++ b/translator/ast_walker.go @@ -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: