Skip to content

Commit

Permalink
Reduce compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Mar 7, 2021
1 parent cb7d35d commit cada6b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sd-bootloader-ng/bootmanager/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static void jsmn_obj_key(const char *key, size_t key_len, void *user_arg) {
if (jsonArrayId == 0)
Config_generalSettings.ofwFixValue = 0x00000000;
if (jsonArrayId < 4)
Config_generalSettings.ofwFixValue += xtob(key) << 8*jsonArrayId;
Config_generalSettings.ofwFixValue += xtob((char*)key) << 8*jsonArrayId;
jsonArrayId++;
} else if (strncmp(jsonGroupName, "ofw", 3) == 0
|| strncmp(jsonGroupName, "cfw", 3)
Expand Down
2 changes: 1 addition & 1 deletion sd-bootloader-ng/bootmanager/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ static bool prepareRun(sImageInfo* imageInfo, char* imagePath, uint32_t filesize
readLen = 0;
}

if (readLen > 0 && (readLen == sl_FsRead(fhandle, offset, numbers, readLen))) {
if (readLen > 0 && (readLen == sl_FsRead(fhandle, offset, (char*)numbers, readLen))) {
sl_FsClose(fhandle, 0, 0, 0);
if (numbers[1] == 0xBEAC0005) {
Config_generalSettings.ofwFixValue = numbers[0];
Expand Down

0 comments on commit cada6b8

Please sign in to comment.