src: fix -Wsign-compare warning on OS X

By casting `SCARD_E_INSUFFICIENT_BUFFER` to `LONG`.
This commit is contained in:
Santiago Gimeno
2017-03-01 22:37:23 +01:00
parent fb6b219d66
commit a5a02f8e82

View File

@@ -290,7 +290,7 @@ LONG PCSCLite::get_card_readers(PCSCLite* pcsclite, AsyncResult* async_result) {
readers_name_length = 0;
#ifndef SCARD_AUTOALLOCATE
/* Retry in case of insufficient buffer error */
if (result == SCARD_E_INSUFFICIENT_BUFFER) {
if (result == (LONG)SCARD_E_INSUFFICIENT_BUFFER) {
result = get_card_readers(pcsclite, async_result);
}
#endif