tweak dict-building sanity check

This commit is contained in:
ehouse 2004-01-25 14:31:34 +00:00
parent c0f2dd71bf
commit b1749fcd9c

View file

@ -237,13 +237,13 @@ initFromDictFile( LinuxDictionaryCtxt* dctx, char* fileName )
if ( dictLength > 0 ) { if ( dictLength > 0 ) {
#ifdef DEBUG #ifdef DEBUG
dctx->super.numEdges = dictLength / 3; # ifdef NODE_CAN_4
#endif dctx->super.numEdges = dictLength / dctx->super.nodeSize;
#ifdef NODE_CAN_4
XP_ASSERT( (dictLength % dctx->super.nodeSize) == 0 ); XP_ASSERT( (dictLength % dctx->super.nodeSize) == 0 );
#else # else
dctx->super.numEdges = dictLength / 3;
XP_ASSERT( (dictLength % 3) == 0 ); XP_ASSERT( (dictLength % 3) == 0 );
# endif
#endif #endif
dctx->super.base = (array_edge*)XP_MALLOC( dctx->super.mpool, dctx->super.base = (array_edge*)XP_MALLOC( dctx->super.mpool,