[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Lpeg-0.10.1
- From: phlnc8 <phlnc8@...>
- Date: Tue, 1 Feb 2011 16:23:33 -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.
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 plain normal?