Skip to content

Commit

Permalink
Fix warnings about changed signedness
Browse files Browse the repository at this point in the history
  • Loading branch information
bfabiszewski committed Oct 11, 2021
1 parent c78e186 commit 904875a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ int set_decryption_key(MOBIData *m, const char *serial, const char *pid) {
mobi_ret = mobi_drm_setkey(m, pid);
if (mobi_ret != MOBI_SUCCESS) {
printf("failed (%s)\n", libmobi_msg(mobi_ret));
ret = mobi_ret;
ret = (int) mobi_ret;
} else {
printf("ok\n");
return SUCCESS;
Expand All @@ -520,7 +520,7 @@ int set_decryption_key(MOBIData *m, const char *serial, const char *pid) {
mobi_ret = mobi_drm_setkey_serial(m, serial);
if (mobi_ret != MOBI_SUCCESS) {
printf("failed (%s)\n", libmobi_msg(mobi_ret));
ret = mobi_ret;
ret = (int) mobi_ret;
} else {
printf("ok\n");
ret = SUCCESS;
Expand Down

0 comments on commit 904875a

Please sign in to comment.