ref: 4df0e8c5be294fa1fe3ea96eff8387c2505912ec
parent: b97e36954f873516c31c0a8c24054784f3c9d751
author: Chris Moeller <kode54@gmail.com>
date: Sun Dec 30 05:59:29 EST 2012
Fixed pattern counting, and swapped pattern counting flag
--- a/dumb/src/it/readmod.c
+++ b/dumb/src/it/readmod.c
@@ -648,7 +648,7 @@
sigdata->n_patterns = -1;
- if ( !( restrict & 2 ) )
+ if ( ( restrict & 2 ) )
{
long total_sample_size;
long remain;
@@ -674,7 +674,7 @@
}
else
{
- for (i = 0; i < sigdata->n_orders; i++)
+ for (i = 0; i < 128; i++)
{
if (sigdata->order[i] > sigdata->n_patterns)
sigdata->n_patterns = sigdata->order[i];