Re: [sword-devel] Odd behavior in ListKey

2025-06-19 Thread DM Smith
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

Re: [sword-devel] Odd behavior in ListKey

2025-06-19 Thread Troy A. Griffitts
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

Re: [sword-devel] Odd behavior in ListKey

2025-06-16 Thread DM Smith
Troy, In VerseKey::checkBounds() void VerseKey::checkBounds() { long i = getIndex(); initBounds(); if (i > upperBound) { setIndex(upperBound); i = getIndex(); error = KEYERR_OUTOFBOUNDS; } if (i < lowerBound)

Re: [sword-devel] Odd behavior in ListKey

2025-06-15 Thread DM Smith
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

[sword-devel] Odd behavior in ListKey

2025-06-12 Thread DM Smith
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