From 012adcf28be52e77eb769bb1dadfe91c80800cf2 Mon Sep 17 00:00:00 2001 From: Oliver Hahm Date: Mon, 12 Dec 2011 18:29:22 +0100 Subject: [PATCH] [sys shell disk] * removed wrong casting --- sys/shell/disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/shell/disk.c b/sys/shell/disk.c index b8bd95f291..8d6a830f87 100644 --- a/sys/shell/disk.c +++ b/sys/shell/disk.c @@ -57,7 +57,7 @@ void _read_sector(char *sector) { if (strlen(sector) > strlen(DISK_READ_SECTOR_CMD) + 1) { - sectornr = (unsigned short) atol(sector + strlen(DISK_READ_SECTOR_CMD) + 1); + sectornr = atol(sector + strlen(DISK_READ_SECTOR_CMD) + 1); if ((MCI_ioctl(GET_SECTOR_COUNT, &scount) == RES_OK) && (MCI_ioctl(GET_SECTOR_SIZE, &ssize) == RES_OK)) { unsigned char read_buf[ssize]; if (sector_read(read_buf, sectornr, ssize, 0)) {