From owner-freebsd-bugs Fri Oct 29 12:24:35 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 5AEBD14C3B for ; Fri, 29 Oct 1999 12:24:22 -0700 (PDT) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.9.3/8.9.3) with SMTP id NAA12060; Fri, 29 Oct 1999 13:24:21 -0600 (MDT) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id NAA05750; Fri, 29 Oct 1999 13:24:20 -0600 Date: Fri, 29 Oct 1999 13:24:20 -0600 Message-Id: <199910291924.NAA05750@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: jin@george.lbl.gov Cc: freebsd-bugs@FreeBSD.ORG, sheldonh@uunet.co.za Subject: 'sizeof' C storage (was Re: bin/14472: date for Y#K) In-Reply-To: <199910291918.MAA24925@george.lbl.gov> References: <199910291918.MAA24925@george.lbl.gov> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > "long" seems to be a bad type definition in C program since it is not in > a fixed variable size. I will not use it at a critical segment. No variable types are 'fixed' in C. On Win32, int is 32 bits, on Alpha it's 64 bit. The only thing you can rely on is that short <= int <= long. The relative sizes are unknown, unless you limit your code to a certain hardware/software platform of known release. The only popular language that fixes it's types is Java that I'm aware of. Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message