lua-users home
lua-l archive

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

>I've found (and fixed) a small bug in lvm.c
>The line
>lvm.c:69 >  if (mask > LUA_MASKLINE) {  /* instruction-hook set? */
>in traceexec caused the HOOKCOUNT to be triggered if i.e. both
>the LINE and RETURN hooks are set (and count has reached zero) even
>though it was not present in the mask.

Can you please send us a minimal program that exhibits this problem?

>minimal change to the line:
>  if (mask >= LUA_MASKCOUNT) {  /* instruction-hook set? */

Won't this change call the count hook to be triggered even more often?