Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!ted From: ted@cs.utexas.edu (Ted Woodward) Newsgroups: comp.sys.mac.misc Subject: Possible Think C bug Message-ID: <1355@lovelady.cs.utexas.edu> Date: 23 Apr 91 01:26:40 GMT Organization: U. Texas CS Dept., Austin, Texas Lines: 19 OK, I don't think I'm crying wolf this time :-) X2Fix doesn't work. According to IM IV, X2Fix takes an extended and converts it to a Fixed. Well, according to the Think C manual, Fix2X converts a Fixed to a double, not extended. No mention is made of X2Fix. But the compiler barfs if I pass it anything but a float; "pascal argument wrong size". And then the toolbox routine thinks it is getting an extended, so it returns the wrong answer. For example, X2Fix of 1.0 returns 0, not 0x00010000. And unfortunately, X2Fix is not declared in one of the header files like Fix2X is; I assume it's in macheaders, which we can't modify. FYI, I'm using Think C v4.1. -- Ted Woodward (ted@cs.utexas.edu) "Mad scientists HATE shopping for shoes!" -- Peaches