From 5dd770c7c4aaa582a9fe694384bfd52a78053362 Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Fri, 28 Mar 2008 02:42:58 +0000 Subject: audit of 'uchar uc=0x80; ulong ul; ul = uc << 24;' class of problems git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@166 6180dd3e-e324-4e3e-922d-17de1ae2f315 --- src/sg_get_config.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sg_get_config.c') diff --git a/src/sg_get_config.c b/src/sg_get_config.c index a839b18d..7f10d943 100644 --- a/src/sg_get_config.c +++ b/src/sg_get_config.c @@ -49,7 +49,7 @@ */ -static char * version_str = "0.34 20080318"; /* mmc6r01 */ +static char * version_str = "0.34 20080327"; /* mmc6r01 */ #define MX_ALLOC_LEN 8192 #define NAME_BUFF_SZ 64 @@ -799,8 +799,8 @@ decode_feature(int feature, unsigned char * ucp, int len) feature); printf(" Disc control blocks:\n"); for (k = 4; k < len; k += 4) { - printf(" 0x%x\n", (ucp[k] << 24) + (ucp[k + 1] << 16) + - (ucp[k + 2] << 8) + ucp[k + 3]); + printf(" 0x%x\n", ((unsigned int)ucp[k] << 24) + + (ucp[k + 1] << 16) + (ucp[k + 2] << 8) + ucp[k + 3]); } break; case 0x10b: /* DVD CPRM */ -- cgit v1.2.3