From owner-freebsd-questions@FreeBSD.ORG Mon Mar 6 12:03:03 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FB9C16A420 for ; Mon, 6 Mar 2006 12:03:03 +0000 (GMT) (envelope-from kamal_ckk@yahoo.com) Received: from web30012.mail.mud.yahoo.com (web30012.mail.mud.yahoo.com [68.142.201.215]) by mx1.FreeBSD.org (Postfix) with SMTP id 65E4543D55 for ; Mon, 6 Mar 2006 12:02:58 +0000 (GMT) (envelope-from kamal_ckk@yahoo.com) Received: (qmail 61961 invoked by uid 60001); 6 Mar 2006 12:02:57 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=zYpew7CRJni7quIsIrQmCxTuCrZXVVn0Oh57THHPAVoPWjGh+2QbkxHk6cYiy4C8dyAvqXUbcxmgnn+WnCQU9TJUihiYx9Nm2TFvLEKRiXeOc4rplaS/06RPr8i/96/EtGw6TqLI7l73iijjGxAPgUZRMVI1J7Y5rXTWfOcScZg= ; Message-ID: <20060306120257.61959.qmail@web30012.mail.mud.yahoo.com> Received: from [202.79.62.24] by web30012.mail.mud.yahoo.com via HTTP; Mon, 06 Mar 2006 04:02:57 PST Date: Mon, 6 Mar 2006 04:02:57 -0800 (PST) From: kamal kc To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: range of 32 bit unsigned int/long X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2006 12:03:03 -0000 dear all, i am a bit confused over this. the 16 bit unsigned integer takes the value as i checked myself for 0 to 2^16-1 (=65535). but the 32 bit unsigned integer/long does not take the value from 0 to 2^32-1 (4294967295). instead 32 bit unsigned int/long takes the value from 0 to 2^31-1 (2147483647). the gcc shows that the message warning: this decimal constant is unsigned only in ISO C90 what is happening, i am confused. kamal. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com