* [PATCH] remove likely profiling int cast
@ 2006-12-10 17:08 Daniel Walker
0 siblings, 0 replies; only message in thread
From: Daniel Walker @ 2006-12-10 17:08 UTC (permalink / raw)
To: akpm; +Cc: linux-kernel
Fix some wrong casting from unsigned int to int. Reported by Andreas Mohr.
Signed-Off-By: Daniel Walker <dwalker@mvista.com>
---
lib/likely_prof.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: linux-2.6.18/lib/likely_prof.c
===================================================================
--- linux-2.6.18.orig/lib/likely_prof.c
+++ linux-2.6.18/lib/likely_prof.c
@@ -86,8 +86,8 @@ static void *lp_seq_next(struct seq_file
static int lp_seq_show(struct seq_file *out, void *p)
{
struct likeliness *entry = p;
- int true = entry->count[1];
- int false = entry->count[0];
+ unsigned int true = entry->count[1];
+ unsigned int false = entry->count[0];
if (!entry->type) {
if (true > false)
--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-12-10 17:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-12-10 17:08 [PATCH] remove likely profiling int cast Daniel Walker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®