From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32510 invoked by alias); 10 Jul 2006 13:01:11 -0000 Received: (qmail 32499 invoked by uid 22791); 10 Jul 2006 13:01:10 -0000 X-Spam-Check-By: sourceware.org Received: from babylon.hostgo.com (HELO babylon.hostgo.com) (65.19.169.34) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 10 Jul 2006 13:01:08 +0000 Received: from 7.red-81-47-3.staticip.rima-tde.net ([81.47.3.7] helo=192.168.0.2) by babylon.hostgo.com with esmtpa (Exim 4.52) id 1FzvNo-0000ji-27 for gcc-help@gcc.gnu.org; Mon, 10 Jul 2006 09:01:06 -0400 Subject: Re: why segfault when parameter is not "int" and is "unsigned long long int" From: Fran To: gcc-help@gcc.gnu.org Content-Type: text/plain Date: Mon, 10 Jul 2006 13:01:00 -0000 Message-Id: <1152536552.15951.7.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-27) Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-07/txt/msg00113.txt.bz2 This is not true. Could be because use unformated fmt char stream, and not promove llu, and pointer is wrong. > typedef unsigned long long int UID; > ... > UID us; > usuario = va_arg (ap, UID); > printf("%llu",us); > segfault This code works if I put "unsigned int" but do not with "unsigned long long int". Should work I think.