[net.unix-wizards] Possible lex bug

sater@tjalk.UUCP (Hans van Staveren) (08/15/84)

In the directory /usr/lib/lex in the file ncform two copy's of the following
line are to be found:

			if ( (int)yyt > (int)yycrank){

This is on 4.1BSD, but on the original V7 tape the same code is to be found.
Can anyone explain the casts? According to me they are just plain wrong.
On the PDP 11 strange things occurred when the tables were loaded above 32K,
and the effect of this on C-compilers with 2-byte int's and 4-byte pointers
is dramatic.

Has anyone seen the light on this one?
-- 
			Hans van Staveren, Vrije Universiteit Amsterdam
			..!mcvax!vu44!tjalk!sater