Re: [PATCH 6/6] sfdisk: fix for data type mismatches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 06, 2011 at 09:07:19PM +0200, Sami Kerola wrote:
> +	if ((unsigned long) pno+4 >= ARRAY_SIZE(z->partitions)) {

 Why 'unsigned long'? I guess that ARRAY_SIZE returns size_t. Maybe it
 would be better to use size_t for partno numbers rather than add the
 cast.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux