Path: utzoo!utgpu!attcan!uunet!mcvax!hp4nl!philmds!prle!cstw01!meulenbr From: meulenbr@cstw01.UUCP (Frans Meulenbroeks) Newsgroups: comp.os.minix Subject: minix/ST cc peculiarity Message-ID: <257@cstw01.UUCP> Date: 7 Nov 88 11:47:59 GMT Reply-To: meulenbr@cst.UUCP () Organization: Centre for Software Technology, Philips Eindhoven Lines: 25 Hi! I noticed the following problem in the minix st C compiler. Given the following program: #define SOMETHING -32768 #include main() { printf("%d\n", SOMETHING); } The result is, that -1 is printed. Thing work well for -32767. Also defining SOMETHING as (int)(-32768L) works fine. This is obviously some conversion problem within the compiler. I have not checked things for MINLONG etc. by the way: don't use floats or doubles; they don't work. -- Frans Meulenbroeks (meulenbr@cst.prl.philips.nl) Centre for Software Technology ( or try: ...!mcvax!philmds!prle!cst!meulenbr)