opensc-explorer.c: fix compiler warning

opensc-explorer.c:1727:8: warning: comparison of integers of different signs:
      'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
                if(r > len) {
                   ~ ^ ~~~
This commit is contained in:
Ludovic Rousseau 2016-02-29 18:07:29 +01:00
parent d929532b63
commit e7cbc3ba82
1 changed files with 1 additions and 1 deletions

View File

@ -1724,7 +1724,7 @@ static int do_asn1(int argc, char **argv)
/* some cards return a bogus value for file length. As
* long as the actual length is not higher than the expected
* length, continue */
if(r > len) {
if(r > (signed)len) {
goto err;
}
}