reader-pcsc.c: fix compiler warning

der-pcsc.c:1101:11: warning: comparison of integers of different signs:
      'LONG' (aka 'int') and 'unsigned int' [-Wsign-compare]
                        if (rv == SCARD_E_NO_SERVICE) {
                            ~~ ^  ~~~~~~~~~~~~~~~~~~
This commit is contained in:
Ludovic Rousseau 2016-02-29 18:18:36 +01:00
parent 80a313fb2a
commit a8c741002d

View File

@ -1098,7 +1098,7 @@ static int pcsc_detect_readers(sc_context_t *ctx)
else {
rv = gpriv->SCardListReaders(gpriv->pcsc_ctx, NULL, NULL,
(LPDWORD) &reader_buf_size);
if (rv == SCARD_E_NO_SERVICE) {
if (rv == (LONG)SCARD_E_NO_SERVICE) {
gpriv->SCardReleaseContext(gpriv->pcsc_ctx);
gpriv->pcsc_ctx = -1;
gpriv->pcsc_wait_ctx = -1;