problem with Lpeg-0.10.1?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: problem with Lpeg-0.10.1?
 
- From: phlnc8 <phlnc8@...>
 
- Date: Wed, 2 Feb 2011 00:05:21 -0500
 
I compiled Lpeg-0.10.1 _without_ -DNDEBUG.
Then, running the test.lua provided in the Lpeg sources (with Lua
5.1.4), an assertion failed:
lua: lpeg.c:792: checkrule: Assertion `op[start - 1].i.code == IChoice
&& ((start - 1) + ((op)+(start - 1))->i.offset) == i + 1' failed.
Aborted
With -DNDEBUG as in the makefile, test.lua runs fine.
Now, I understand that it should be compiled with -DNDEBUG, but I was
just wondering, is it a symptom of something wrong in the code, or
just expected?
TIA,
Phil