drivers/bch: fix uint32 overflow issue
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
99df615c9b
commit
5f0230d79f
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ static off_t bch_seek(FAR struct file *filep, off_t offset, int whence)
|
|||
break;
|
||||
|
||||
case SEEK_END:
|
||||
newpos = bch->sectsize * bch->nsectors + offset;
|
||||
newpos = (off_t)bch->sectsize * bch->nsectors + offset;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue