From e934c7a417a425b67078968e5acf82afbe66f8b0 Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Tue, 23 Jul 2024 17:52:42 +0900 Subject: [PATCH] src/ssd/ssd.c: fix incorrect condition in ssd_part_contains() --- src/ssd/ssd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssd/ssd.c b/src/ssd/ssd.c index 6382983d..a8c3e173 100644 --- a/src/ssd/ssd.c +++ b/src/ssd/ssd.c @@ -342,7 +342,7 @@ ssd_part_contains(enum ssd_part_type whole, enum ssd_part_type candidate) } if (whole == LAB_SSD_PART_TOP) { return candidate == LAB_SSD_PART_CORNER_TOP_LEFT - || candidate == LAB_SSD_PART_CORNER_BOTTOM_LEFT; + || candidate == LAB_SSD_PART_CORNER_TOP_RIGHT; } if (whole == LAB_SSD_PART_RIGHT) { return candidate == LAB_SSD_PART_CORNER_TOP_RIGHT