commmon: fastboot: cast 64bit when converting sectors to bytes
authorChanho Park <chanho61.park@samsung.com>
Thu, 20 Aug 2015 04:30:33 +0000 (13:30 +0900)
committerChanho Park <parkch98@gmail.com>
Fri, 21 Aug 2015 01:45:02 +0000 (10:45 +0900)
commitb15553c6577c2b2756b1fc16a0d869c22e8fa054
treed81b0cd061c3f34ac5e43aabcfc4e836330da186
parent4e825d19ac4f427377b7ad1ec4f2acb25e4e6469
commmon: fastboot: cast 64bit when converting sectors to bytes

This patch fixes a cast error when converting sectors to bytes. The
start and size types of the disk_partition_t are 32bit until the
SYS_64BIT_LBA is defined. To prevent the converting error, we should
cast the value to 64bit values.

Change-Id: Ibc71207642aba2d78091123f311b8a30f33e78c7
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
common/cmd_fastboot.c