Skip to content

Commit

Permalink
add support for int128 and uint128
Browse files Browse the repository at this point in the history
(cherry picked from commit 8884b4ce3c603651e96bd09f83ec5fe2ca1c77a5)
  • Loading branch information
James Strachan authored and xlab committed May 23, 2023
1 parent 231d72d commit 561696b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions translator/ast_walker.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,13 +349,20 @@ func (t *Translator) typeSpec(typ cc.Type, name string, deep int, isConst bool,
case cc.UInt:
spec.Base = "int"
spec.Unsigned = true
case cc.Int128:
spec.Base = "int"
spec.Long = true
case cc.Long:
spec.Base = "int"
spec.Long = true
case cc.ULong:
spec.Base = "int"
spec.Long = true
spec.Unsigned = true
case cc.UInt128:
spec.Base = "int"
spec.Long = true
spec.Unsigned = true
case cc.LongLong:
spec.Base = "long"
spec.Long = true
Expand Down

0 comments on commit 561696b

Please sign in to comment.