From 0a51563e4e5989abe8becd1c060e06d4dec6024e Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 28 May 2020 08:17:29 +0200 Subject: ortho/gcc: convert boolean and enums to int on interfaces. --- src/ortho/gcc/ortho-lang-7.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ortho/gcc/ortho-lang-7.c') diff --git a/src/ortho/gcc/ortho-lang-7.c b/src/ortho/gcc/ortho-lang-7.c index 92bfc8d46..f78bf0460 100644 --- a/src/ortho/gcc/ortho-lang-7.c +++ b/src/ortho/gcc/ortho-lang-7.c @@ -1718,8 +1718,10 @@ new_interface_decl (struct o_inter_list *interfaces, case ENUMERAL_TYPE: case BOOLEAN_TYPE: DECL_ARG_TYPE (r) = integer_type_node; + break; default: DECL_ARG_TYPE (r) = atype; + break; } layout_decl (r, 0); -- cgit v1.2.3