X-Spam-Check-By: sourceware.org Message-ID: <20061002025246.19738.qmail@web31814.mail.mud.yahoo.com> Date: Sun, 1 Oct 2006 19:52:46 -0700 (PDT) From: Mark Seery Subject: Re: ntohl returns negative on Windows XP To: Dave Korn , cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=ascii X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k922qtEH032275 Dave, Was snprintf not printf, but same problem. Thanks - much appreciated. ----- Original Message ---- From: Dave Korn To: cygwin AT cygwin DOT com Sent: Sunday, October 1, 2006 7:36:28 PM Subject: RE: ntohl returns negative on Windows XP 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/ -- 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/