From 6b42385349d6b402991eb7807ec52736509e92d8 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Fri, 6 Oct 2006 12:37:16 +0000 Subject: [PATCH] correct operator priority between + and >> for IDE1 --- libemile/emile_scsi_get_rdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libemile/emile_scsi_get_rdev.c b/libemile/emile_scsi_get_rdev.c index 29dea27..fd537cf 100644 --- a/libemile/emile_scsi_get_rdev.c +++ b/libemile/emile_scsi_get_rdev.c @@ -35,7 +35,7 @@ int emile_scsi_get_rdev(char* dev_name, int* driver, int *disk, int *partition) if (partition) *partition = st.st_rdev & 0x3F; break; case MAJOR_IDE1: - *disk = 2 + (st.st_rdev & 0xFF) >> 6; + *disk = 2 + ((st.st_rdev & 0xFF) >> 6); if (partition) *partition = st.st_rdev & 0x3F; break; default: