Xref: utzoo comp.lang.c:17617 comp.os.misc:862 comp.sys.ibm.pc:27353 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!hodge!jdm From: jdm@hodge.UUCP (jdm) Newsgroups: comp.lang.c,comp.os.misc,comp.sys.ibm.pc Subject: Word size problem with MSC Keywords: MSC Message-ID: <9462@hodge.UUCP> Date: 12 Apr 89 23:59:04 GMT Organization: Hodge Computer Research Corporation Lines: 25 I am currently porting some code from a 32 bit Unix environmant to a 16 bit MS-DOS environment and my target compiler is Microsoft C. The problem I have encountered is the switch() function in MSC (and in Turbo C for that matter) will only accept a 16 bit integer argument. The code I am porting requires 32 bit values to be used in a case statement. 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? -- jdm@hodge.cts.com [uunet zardoz vdelta crash]!hodge!jdm James D. Murray, Ethnounixologist Hodge Computer Research Corp. 1588 N. Batavia Street Orange, CA 92667 USA TEL: (714) 998-7750 FAX: (714) 921-8038