summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/commonlib/storage/mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commonlib/storage/mmc.c b/src/commonlib/storage/mmc.c
index b8a3b67495..ad7861704f 100644
--- a/src/commonlib/storage/mmc.c
+++ b/src/commonlib/storage/mmc.c
@@ -433,7 +433,7 @@ int mmc_update_capacity(struct storage_media *media)
* ext_csd's capacity is valid if the value is
* more than 2GB
*/
- capacity = (ext_csd[EXT_CSD_SEC_CNT + 0] << 0 |
+ capacity = (uint32_t)(ext_csd[EXT_CSD_SEC_CNT + 0] << 0 |
ext_csd[EXT_CSD_SEC_CNT + 1] << 8 |
ext_csd[EXT_CSD_SEC_CNT + 2] << 16 |
ext_csd[EXT_CSD_SEC_CNT + 3] << 24);