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:
parent
80a313fb2a
commit
a8c741002d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user