diff --git a/src/add-ons/kernel/disk_scanner/partition/intel_partition_map.cpp b/src/add-ons/kernel/disk_scanner/partition/intel_partition_map.cpp index 62c0f01a6c..7a09c131ad 100644 --- a/src/add-ons/kernel/disk_scanner/partition/intel_partition_map.cpp +++ b/src/add-ons/kernel/disk_scanner/partition/intel_partition_map.cpp @@ -355,8 +355,8 @@ static int cmp_partition_offset(const void *p1, const void *p2) { - const Partition *partition1 = *static_cast(p1); - const Partition *partition2 = *static_cast(p2); + const Partition *partition1 = *(const Partition**)p1; + const Partition *partition2 = *(const Partition**)p2; if (partition1->Offset() < partition2->Offset()) return -1; else if (partition1->Offset() > partition2->Offset())