REmove unneeded type and update the README.md file

This commit is contained in:
Samuel D. Crow
2022-08-01 21:48:40 -05:00
parent 820fb864bd
commit ede1b24458
3 changed files with 23 additions and 3 deletions

View File

@@ -192,8 +192,7 @@ void fn::close()
{
/* check if no returns and no return type */
enum CODES t=this->getType();
if (this->kind==T_UNKNOWN&&
(t==T_UNKNOWNFUNC||t==T_VOIDFUNC))
if (this->kind==T_UNKNOWN && t==T_UNKNOWNFUNC)
{
/* generate a typeless return */
this->generateReturn();