[sword-svn] r2009 - in trunk: include src/keys
dglassey at www.crosswire.org
dglassey at www.crosswire.org
Sat Nov 25 14:24:43 MST 2006
Author: dglassey
Date: 2006-11-25 14:24:43 -0700 (Sat, 25 Nov 2006)
New Revision: 2009
Modified:
trunk/include/treekeyidx.h
trunk/src/keys/treekeyidx.cpp
Log:
offset should be signed
reason - it is compared with signed values in previoussibling
Modified: trunk/include/treekeyidx.h
===================================================================
--- trunk/include/treekeyidx.h 2006-11-25 21:17:33 UTC (rev 2008)
+++ trunk/include/treekeyidx.h 2006-11-25 21:24:43 UTC (rev 2009)
@@ -41,7 +41,7 @@
TreeNode();
~TreeNode();
void clear();
- __u32 offset;
+ __s32 offset;
__s32 parent;
__s32 next;
__s32 firstChild;
Modified: trunk/src/keys/treekeyidx.cpp
===================================================================
--- trunk/src/keys/treekeyidx.cpp 2006-11-25 21:17:33 UTC (rev 2008)
+++ trunk/src/keys/treekeyidx.cpp 2006-11-25 21:24:43 UTC (rev 2009)
@@ -159,7 +159,7 @@
bool TreeKeyIdx::previousSibling() {
TreeNode iterator;
- __u32 target = currentNode.offset;
+ __s32 target = currentNode.offset;
if (currentNode.parent > -1) {
getTreeNodeFromIdxOffset(currentNode.parent, &iterator);
getTreeNodeFromIdxOffset(iterator.firstChild, &iterator);
More information about the sword-cvs
mailing list