shithub: riscv

Download patch

ref: b81609d071833c6d950af7a4efac53af86c7c276
parent: 34a662c6af90f4bd5f2ae184aeb126342e4e799e
author: cinap_lenrek <[email protected]>
date: Fri Dec 30 13:20:56 EST 2022

sdmmc: switch argument must be integer

--- a/sys/src/9/port/sdmmc.c
+++ b/sys/src/9/port/sdmmc.c
@@ -269,7 +269,7 @@
 				break;
 			readextcsd(card);
 #define EXT_CSD(end, start) rbytes(card->ext_csd, start, (end)-(start)+1)
-			switch(EXT_CSD(192, 192)){
+			switch((uchar)EXT_CSD(192, 192)){
 			case 8:
 				card->specver = 510;	/* 5.1 */
 				break;