Making valgrind a bit more happy, and adding code that may or may not

help with #490 and #491.
This commit is contained in:
Robin Sommer 2011-07-10 12:32:33 -07:00
parent 1d20d2a985
commit 5113b100d9
5 changed files with 13 additions and 2 deletions

View file

@ -2284,7 +2284,10 @@ ListVal* TableVal::ConvertToPureList() const
{
type_list* tl = table_type->Indices()->Types();
if ( tl->length() != 1 )
{
InternalWarning("bad index type in TableVal::ConvertToPureList");
return 0;
}
return ConvertToList((*tl)[0]->Tag());
}