mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
tweak dict-building sanity check
This commit is contained in:
parent
c0f2dd71bf
commit
b1749fcd9c
1 changed files with 5 additions and 5 deletions
|
@ -237,13 +237,13 @@ initFromDictFile( LinuxDictionaryCtxt* dctx, char* fileName )
|
|||
|
||||
if ( dictLength > 0 ) {
|
||||
#ifdef DEBUG
|
||||
dctx->super.numEdges = dictLength / 3;
|
||||
#endif
|
||||
|
||||
#ifdef NODE_CAN_4
|
||||
# ifdef NODE_CAN_4
|
||||
dctx->super.numEdges = dictLength / dctx->super.nodeSize;
|
||||
XP_ASSERT( (dictLength % dctx->super.nodeSize) == 0 );
|
||||
#else
|
||||
# else
|
||||
dctx->super.numEdges = dictLength / 3;
|
||||
XP_ASSERT( (dictLength % 3) == 0 );
|
||||
# endif
|
||||
#endif
|
||||
|
||||
dctx->super.base = (array_edge*)XP_MALLOC( dctx->super.mpool,
|
||||
|
|
Loading…
Reference in a new issue