Path: utzoo!attcan!uunet!lll-winken!lll-lcc!ames!umd5!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.std.c Subject: Re: switch (expression) Summary: minor correction Message-ID: <12492@mimsy.UUCP> Date: 15 Jul 88 03:14:12 GMT References: <1988Jul12.105547.13268@light.uucp> <7329@cup.portal.com> <12484@mimsy.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 13 In article <12484@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@mimsy.umd.edu Path: uunet!mimsy!chris