switch (expression)

Chris Torek chris at mimsy.UUCP
Fri Jul 15 13:14:12 AEST 1988


In article <12484 at mimsy.UUCP> I wrote some pseudo-assembly:
>	reg = i-1
>	(unsigned)(reg - 36)
>	>= 0 ? goto default
>	goto cases[reg]

I have no idea why I wrote that.  That should be:

	reg = i-1
	if ((unsigned)reg > 36) goto default
	goto cases[reg]
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.std.c mailing list