Use signed char for variable

Architectures other than x86 don't by default treat char as signed so
be explicit so the build doesn't fail when building on other arches
such as Arm.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
This commit is contained in:
Peter Robinson 2019-06-28 11:51:58 +01:00
parent c49bf47e08
commit aca206f7e9

View File

@ -1882,7 +1882,7 @@ bool upgrade_loader(STRUCT_RKDEVICE_DESC &dev, char *szLoader)
CRKComm *pComm = NULL;
bool bRet, bSuccess = false;
int iRet;
char index;
signed char index;
USHORT usFlashDataSec, usFlashBootSec;
DWORD dwLoaderSize, dwLoaderDataSize, dwDelay, dwSectorNum;
char loaderCodeName[] = "FlashBoot";