Xref: utzoo comp.lang.c:22147 comp.unix.ultrix:1761 Path: utzoo!attcan!utgpu!watmath!att!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!apple!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c,comp.unix.ultrix Subject: Re: Type of expression sizeof(x) Message-ID: <11125@smoke.BRL.MIL> Date: 21 Sep 89 20:56:31 GMT References: <256@servio.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 11 In article <256@servio.UUCP> penneyj@servio.UUCP (D. Jason Penney) writes: >Our conversation with DEC re this bug was extremely unhelpful. They claim that >the return type of a sizeof() expression is system-dependent. Why was that unhelpful? They're right. It's not DEC's bug. AT&T UNIX C compilers changed the type of sizeof from int to unsigned int many years ago. The ANSI standard for C will require that the type of sizeof be an unsigned integral type (so it might be unsigned long on some systems).