diff options
| -rw-r--r-- | lang/cpp/src/gpgrevokekeyeditinteractor.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/lang/cpp/src/gpgrevokekeyeditinteractor.cpp b/lang/cpp/src/gpgrevokekeyeditinteractor.cpp index fda70f24..f918bdb6 100644 --- a/lang/cpp/src/gpgrevokekeyeditinteractor.cpp +++ b/lang/cpp/src/gpgrevokekeyeditinteractor.cpp @@ -138,7 +138,7 @@ unsigned int GpgRevokeKeyEditInteractor::Private::nextState(unsigned int status,          if (status == GPGME_STATUS_GET_LINE &&                  strcmp(args, "ask_revocation_reason.text") == 0) {              nextLine++; -            return nextLine < reasonLines.size() ? REASON_TEXT : REASON_TEXT_DONE; +            return static_cast<std::size_t>(nextLine) < reasonLines.size() ? REASON_TEXT : REASON_TEXT_DONE;          }          err = GENERAL_ERROR;          return ERROR; @@ -147,7 +147,7 @@ unsigned int GpgRevokeKeyEditInteractor::Private::nextState(unsigned int status,              if (status == GPGME_STATUS_GET_LINE &&                      strcmp(args, "ask_revocation_reason.text") == 0) {                  nextLine++; -                return nextLine < reasonLines.size() ? state + 1 : REASON_TEXT_DONE; +                return static_cast<std::size_t>(nextLine) < reasonLines.size() ? state + 1 : REASON_TEXT_DONE;              }          }          err = GENERAL_ERROR; | 
