Troy,
Thanks for your reply!
DM
> [dmsmith@host testsuite]$ ./runall.sh
> gbs_basic: PASSED.
> greekaccents: PASSED.
> ldr12n: PASSED.
> listtest: PASSED.
> osis_basic: PASSED.
> osis_mod2zmod: PASSED.
> osis_osis2modcipher: PASSED.
> utf8basic: PASSED.
> versekeytest: PASSED.
> versemgrtest: PAS
DM,
Sorry for the late reply and thank you for tracking this down. Yes!
This looks like a reasonable solution. Please feel free to commit if
all the sword/tests/testsuite/run-all.sh returns no problems with your
change.
It's been a bit crazy these days and I haven't been able to keep up wi
Troy,
In VerseKey::checkBounds()
void VerseKey::checkBounds() {
long i = getIndex();
initBounds();
if (i > upperBound) {
setIndex(upperBound);
i = getIndex();
error = KEYERR_OUTOFBOUNDS;
}
if (i < lowerBound)
Troy,
I’ve narrowed it down to turning Auto Normalize off.
In examples/cmdline/parseverselist.cpp, add parser.setAutoNormalize(false) to
see the error with Gen.51.1. Note Gen.50.99 (last chapter with bad verse
number) works.
DM
> On Jun 12, 2025, at 7:03 PM, DM Smith wrote:
>
> Troy,
>
> I
Troy,
I’m working on an infinite loop bug in osis2mod.
I’ve narrowed it down to ListKey containing a verse with a chapter which is
beyond the end of a book.
When this happens list.increment(1) never sets an error.
Simplest test case (bit incomplete):
int i = 0;
ListKey list = new ListKey();
l