+Wed Dec 31 16:27:33 WAST 2003 John Darrington <john@darrington.wattle.id.au>
+
+ * Fixed bug where FREQ would crash on alpha values
+
Tue Dec 30 22:42:57 2003 Ben Pfaff <blp@gnu.org>
* Removed bletcherous alloca() workarounds for AIX from top of
case FRQ_DFREQ | (ALPHA << 16): return compare_freq_alpha_d;
default: assert (0);
}
+
+ return 0;
}
static int
/* Hash of string values. */
static unsigned
-hash_value_alpha (const void *value_, void *len_)
+hash_value_alpha (const void *value_, void *len_ unused)
{
const struct freq *value = value_;
- int *len = len_;
- return hsh_hash_bytes (value->v.s, *len);
+ static int len = MAX_SHORT_STRING;
+
+ return hsh_hash_bytes (value->v.s, len);
}
/* Ascending numeric compare of values. */