Hi Guys, Here's a patch for a bug that was uncovered on my machine. Hugs did work for some time, and then suddenly stopped working (ie, wouldn't Parse Prelude.hs, and eats up CPU). Basically, lineBuffer in input.c was declared type (char), and EOF on my machine is -1, so it's outside the range of (char). The bug occurs line 516 of input.c (original). It works ok on x86, so I've put a little preprocessor routine to adapt depending on the value of EOF. There's one of my comments there, and if you feel that it taints hugs code, feel free to remove it. Take care, keep up the good work :). \LaShI -- Debian GNU/Linux 3.0 (Sid) (ibook2,powerpc), kernel 2.4.18-benh-xfs <lashi@optusnet.com.au> 1874 5597 C754 5209 0A7D 4DA6 9112 5D0E CC1F 67BC
participants (1)
-
Menaka Lashitha Bandara