From aa40313ec2f9f3042f7099e9ff05fe24bccb7164 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Mon, 22 Dec 2014 11:42:34 -0500 Subject: ich9deblob: use unsigned char as cast when checking endianness --- (limited to 'resources') diff --git a/resources/utilities/ich9deblob/ich9deblob.c b/resources/utilities/ich9deblob/ich9deblob.c index d65fa31..22c5787 100644 --- a/resources/utilities/ich9deblob/ich9deblob.c +++ b/resources/utilities/ich9deblob/ich9deblob.c @@ -287,7 +287,7 @@ int structSizesIncorrect(struct DESCRIPTORREGIONRECORD descriptorDummy, struct G int systemIsBigEndian() { // endianness check. big endian forced to fail unsigned short steak = 0xBEEF; - unsigned char *grill = (char*)&steak; + unsigned char *grill = (unsigned char*)&steak; if (*grill==0xBE) { printf("\nunsigned short 0xBEEF: first byte should be EF, but it's BE. Your system is big endian, and unsupported (only little endian is tested)\n"); return 1; -- cgit v0.9.1