diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_mmc.c b/common/cmd_mmc.c index f1431d3..fb818f2 100644 --- a/common/cmd_mmc.c +++ b/common/cmd_mmc.c @@ -285,7 +285,7 @@ int do_mmcops(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) dev = simple_strtoul(argv[2], NULL, 10); else if (argc == 4) { dev = (int)simple_strtoul(argv[2], NULL, 10); - part = (int)simple_strtoul(argv[3], NULL, 10); + part = (int)simple_strtol(argv[3], NULL, 10); if (part > PART_ACCESS_MASK) { printf("#part_num shouldn't be larger" " than %d\n", PART_ACCESS_MASK); |