X-Spam-Check-By: sourceware.org From: "Dave Korn" To: Subject: RE: ntohl returns negative on Windows XP Date: Mon, 2 Oct 2006 03:36:28 +0100 Message-ID: <047e01c6e5cb$930d9320$a501a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20061002022748.58592.qmail@web31809.mail.mud.yahoo.com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 02 October 2006 03:28, Mark Seery wrote: > ntohl is returning 0xFE725D7B as a negative number (-26059397). > Is this the correct beavior. Should be: 4268907899? > > variables being used are declared as unsigned int. Show us the code. Probably you forgot the 'u' off the printf %-specifier. cheers, DaveK -- Can't think of a witty .sigline today.... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/