Messages in this thread | | | Date | Tue, 14 Feb 2006 21:54:15 -0800 | From | Andrew Morton <> | Subject | Re: [PATCH trivial] Fix the comparison with sizeof() |
| |
Takashi Iwai <tiwai@suse.de> 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |