[PATCH] mtd-utils: common.h: simple_strtoll type usage

Artem Bityutskiy dedekind1 at gmail.com
Fri Feb 25 03:49:28 EST 2011


On Tue, 2011-02-15 at 17:47 -0800, Brian Norris wrote:
> We must use "long long" and "unsigned long long" types when
> implementing the functions "simple_strtoll()" and "simple_strtoull()",
> respectively. This prevents casting/truncation errors on systems where
> "long" is not the same size as "long long" (that is, on most systems).
> 
> Signed-off-by: Brian Norris <computersforpeace at gmail.com>

Pushed, thank you!

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)




More information about the linux-mtd mailing list