Skip to content

Commit

Permalink
add missing cast
Browse files Browse the repository at this point in the history
  • Loading branch information
regiMario committed Mar 20, 2024
1 parent 156817e commit bcb9a21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/json.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ int32_t parseStatus(ruJson jsn, bool* invalidRequest) {
}

/* not ok get the error code */
int32_t code = ruJsonKeyInt(jsn, "code", &ret);
int32_t code = (int32_t)ruJsonKeyInt(jsn, "code", &ret);
if (ret != RUE_OK) {
ruCritLog("status not ok and no ec set");
ret = DVE_PROTOCOL_ERROR;
Expand Down

0 comments on commit bcb9a21

Please sign in to comment.