Skip to content

Commit

Permalink
lj_ctype.c: Avoid crash when printing unprintable ctype IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed May 10, 2018
1 parent 90a15f7 commit 473cb19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lj_ctype.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,8 +529,8 @@ static void ctype_repr(CTRepr *ctr, CTypeID id)
ctype_appc(ctr, ')');
break;
default:
lua_assert(0);
break;
ctr->ok = 0;
return;
}
ct = ctype_get(ctr->cts, ctype_cid(info));
}
Expand Down

0 comments on commit 473cb19

Please sign in to comment.