Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!mmdf From: HBO043%DJUKFA11.BITNET@cunyvm.cuny.edu (Christoph van Wuellen) Newsgroups: comp.os.minix Subject: Re: c68 has a switch bug Message-ID: <46395@nigel.ee.udel.edu> Date: 3 Mar 91 14:30:28 GMT Sender: mmdf@ee.udel.edu Lines: 15 Well, this bug report urged me to ship out the last posting. I have hesitated shipping out patch1 since I was busy and since I got some bug reports. I have tried to send fixes to those who sent bug reports, but this one was the first to go over the net... Your solution (calling g_cast) is potentially weak. Although it works at the moment, you cannot control the bahviour of g_cast forever. It is dangerous to call g_cast from a totally different module (normaly I would say it is only legal to call g_expr, g_cast may well become static one day). My solution was to do a swith statement here and to handle the types char, unsigned char, short, and unsigned short specially. C.v.W.