Skip to content

Commit

Permalink
Merge pull request #9747 from cladmi/2018.07/pr/driver/sdcard_spi
Browse files Browse the repository at this point in the history
drivers/sdcard_spi: fix uint64_t cast location [backport 2018.07]
  • Loading branch information
cladmi authored Aug 9, 2018
2 parents 14ee90b + b4c82b0 commit 4b7ddba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/sdcard_spi/sdcard_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ uint64_t sdcard_spi_get_capacity(sdcard_spi_t *card)
return blocknr * block_len;
}
else if (card->csd_structure == SD_CSD_V2) {
return (card->csd.v2.C_SIZE + 1) * (uint64_t)(SD_HC_BLOCK_SIZE << 10);
return (card->csd.v2.C_SIZE + 1) * (((uint64_t)SD_HC_BLOCK_SIZE) << 10);
}
return 0;
}
Expand Down

0 comments on commit 4b7ddba

Please sign in to comment.