[jsword-devel] Patch for Blur bug
DM Smith
dmsmith555 at yahoo.com
Thu Jul 29 07:17:13 MST 2004
I found a bug in blur for Gen 1.1. It would add 0 to the bitset and
later detect that it was invalid.
-------------- next part --------------
Index: BitwisePassage.java
===================================================================
RCS file: /cvs/jsword/jsword/java/jsword/org/crosswire/jsword/passage/BitwisePassage.java,v
retrieving revision 1.19
diff -u -r1.19 BitwisePassage.java
--- BitwisePassage.java 27 Jul 2004 21:42:37 -0000 1.19
+++ BitwisePassage.java 29 Jul 2004 14:22:50 -0000
@@ -314,7 +314,7 @@
for (int i=store.nextSetBit(0); i>=0; i=store.nextSetBit(i+1))
{
- int start = Math.max(0, i-verses);
+ int start = Math.max(1, i-verses);
int end = Math.min(versesInBible, i+verses);
for (int j=start; j<=end; j++)
More information about the jsword-devel
mailing list