Xref: utzoo comp.lang.c:17632 comp.os.misc:863 comp.sys.ibm.pc:27386 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!gauss.rutgers.edu!math.rutgers.edu!bumby From: bumby@math.rutgers.edu (Richard Bumby) Newsgroups: comp.lang.c,comp.os.misc,comp.sys.ibm.pc Subject: Re: Word size problem with MSC Keywords: MSC Message-ID: Date: 13 Apr 89 20:58:55 GMT References: <9462@hodge.UUCP> Organization: Rutgers Univ., New Brunswick, N.J. Lines: 23 Cc: bumby In article <9462@hodge.UUCP> jdm@hodge.UUCP (jdm) writes: . . . . . . > Normally I would convert the case statement to a series of > if...else statements, but I have been informed that the part of the > code I am working on cannot be changed for reasons of future > compatability. Is there a patch for the MS C compiler, or some other > action, that will allow the switch() function to accept 32 bit > integers? > > -- This may not be the patch you are looking for, but as long as you really don't need more than 65536 cases, you should probably find a simple function that maps your domain into something that can be represented by a 16 bit integer. As long as it is declared to be an int, the internal representation will be irrelevant. The resulting code will then be compatable with both 16 and 32 bit processors. -- --R. T. Bumby ** Math ** Rutgers ** New Brunswick ** (in one form or another for all kinds of mail) [bumby@math.rutgers.edu]