From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10124 invoked by alias); 4 Apr 2006 04:32:47 -0000 Received: (qmail 10113 invoked by uid 48); 4 Apr 2006 04:32:45 -0000 Date: Tue, 04 Apr 2006 04:32:00 -0000 From: "vapier at gentoo dot org" To: glibc-bugs@sources.redhat.com Message-ID: <20060404043245.2509.vapier@gentoo.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/2509] New: glibc printf length modifier (h) bug when using integer conversion (i) X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2006-04/txt/msg00048.txt.bz2 List-Id: as a user pointed out in a Gentoo bug, the statement: printf("%hi", 0xffff0010); yields -65520 instead of the expected truncated value 16 oddly enough, printf("%hu", 0xffff0010); works as expected tested Gentoo/glibc-2.4/amd64 -- Summary: glibc printf length modifier (h) bug when using integer conversion (i) Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: libc AssignedTo: drepper at redhat dot com ReportedBy: vapier at gentoo dot org CC: glibc-bugs at sources dot redhat dot com,toolchain at gentoo dot org http://sourceware.org/bugzilla/show_bug.cgi?id=2509 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.