lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


lua 3.2 bug on HPUX machines

The following piece of code in lparser.c needs to be replaced

static TaggedString *str_checkname (LexState *ls) {
  return tsvalue(&ls->fs->f->consts[checkname(ls)]);
}

-- modified code
static TaggedString *str_checkname (LexState *ls) {
  int sc = checkname(ls);
  return tsvalue(&ls->fs->f->consts[sc]);
}

This is causing a core dump on HPUX machines. The reason
is rather obvious.

I hope this change finds its way thru to the official release.

Thanks
-- 
Supratik