From: tokyo4j Date: Tue, 23 Jul 2024 08:52:42 +0000 (+0900) Subject: src/ssd/ssd.c: fix incorrect condition in ssd_part_contains() X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=e934c7a417a425b67078968e5acf82afbe66f8b0;p=proto%2Flabwc.git src/ssd/ssd.c: fix incorrect condition in ssd_part_contains() --- 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