Re: [PATCH trivial] Fix the comparison with sizeof()

From: Andrew Morton
Date: Wed Feb 15 2006 - 00:53:11 EST


Takashi Iwai <tiwai@xxxxxxx> wrote:
>
> - min((unsigned int)scsicmd->cmnd[13], sizeof(cp)));
> + min((size_t)scsicmd->cmnd[13], sizeof(cp)));

Note that this can also be done with the min_t() macro, although I can't
immediately think of a reason why min_t() is any better..
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/