* Re: why segfault when parameter is not "int" and is "unsigned long long int"
@ 2006-07-10 13:01 Fran
0 siblings, 0 replies; 2+ messages in thread
From: Fran @ 2006-07-10 13:01 UTC (permalink / raw)
To: gcc-help
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* why segfault when parameter is not "int" and is "unsigned long long int"
@ 2006-07-10 10:46 Fran
0 siblings, 0 replies; 2+ messages in thread
From: Fran @ 2006-07-10 10:46 UTC (permalink / raw)
To: gcc-help
> 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-07-10 13:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-10 13:01 why segfault when parameter is not "int" and is "unsigned long long int" Fran
-- strict thread matches above, loose matches on Subject: below --
2006-07-10 10:46 Fran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).