diff --git a/sys/boot/common/part.c b/sys/boot/common/part.c index 9a30df84f848..31ea82ae0834 100644 --- a/sys/boot/common/part.c +++ b/sys/boot/common/part.c @@ -661,8 +661,8 @@ ptable_open(void *dev, off_t sectors, uint16_t sectorsize, for (i = has_ext = 0; i < NDOSPART; i++) { if (dp[i].dp_typ == 0) continue; - start = le32toh(dp[i].dp_start); - end = le32toh(dp[i].dp_size); + start = le32dec(&(dp[i].dp_start)); + end = le32dec(&(dp[i].dp_size)); if (start == 0 || end == 0) continue; #if 0 /* Some BIOSes return an incorrect number of sectors */