linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sparse handles int64_t type wrong
@ 2006-12-12 19:34 Yura Pakhuchiy
  2006-12-12 19:44 ` Linus Torvalds
  0 siblings, 1 reply; 10+ messages in thread
From: Yura Pakhuchiy @ 2006-12-12 19:34 UTC (permalink / raw)
  To: Linus Torvalds, Josh Triplett; +Cc: linux-sparse

[-- Attachment #1: Type: text/plain, Size: 337 bytes --]

Hi,

sparse 0.2 produces following errors on attached code:
a.c:15:7: warning: incorrect type in argument 1 (different type sizes)
a.c:15:7:    expected int [long] [usertype] *baz
a.c:15:7:    got int *<noident>
a.c:13:10: warning: shift too big (32) for type int 

However I believe it should not. Please fix!

-- 
Thanks,
        Yura

[-- Attachment #2: a.c --]
[-- Type: text/x-csrc, Size: 161 bytes --]

#include <sys/types.h>

typedef int64_t s64;

void foo(s64 *baz)
{
}

int main(int argc, char *argv[])
{
	s64 bar;

	if (bar >> 32)
		;
	foo(&bar);
	return 0;
}

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-12-14  4:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-12 19:34 sparse handles int64_t type wrong Yura Pakhuchiy
2006-12-12 19:44 ` Linus Torvalds
2006-12-12 19:50   ` Yura Pakhuchiy
2006-12-12 20:02   ` Linus Torvalds
2006-12-12 20:25     ` Yura Pakhuchiy
2006-12-13  5:18     ` [PATCH][RFC] " Christopher Li
2006-12-13 15:36       ` Linus Torvalds
2006-12-14  0:13         ` Christopher Li
2006-12-14  0:57           ` Linus Torvalds
2006-12-14  4:21             ` Christopher Li

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 NNTP newsgroup(s).