src: fix -Wsign-compare warning on OS X
By casting `SCARD_E_INSUFFICIENT_BUFFER` to `LONG`.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user