Skip to content

Commit

Permalink
Add toCtype for TypeVector
Browse files Browse the repository at this point in the history
  • Loading branch information
Iain Buclaw committed Sep 12, 2012
1 parent 842eeee commit 2b4f094
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mtype.h
Expand Up @@ -434,6 +434,8 @@ struct TypeVector : Type
int isZeroInit(Loc loc);
TypeInfoDeclaration *getTypeInfoDeclaration();
TypeTuple *toArgTypes();

type *toCtype();
};

struct TypeArray : TypeNext
Expand Down
5 changes: 5 additions & 0 deletions src/toctype.c
Expand Up @@ -75,6 +75,11 @@ type *TypeSArray::toCParamtype()
#endif
}

type *TypeVector::toCtype()
{
return Type::toCtype();
}

type *TypeSArray::toCtype()
{
if (!ctype)
Expand Down

0 comments on commit 2b4f094

Please sign in to comment.