Fixes comparaisons between signed and unsigned values

This commit is contained in:
Romuald Conty 2013-02-20 18:23:07 +01:00
parent b1bc800c83
commit 0406f0002e
2 changed files with 3 additions and 2 deletions

View file

@ -676,7 +676,8 @@ int mf_enhanced_auth(int e_sector, int a_sector, mftag t, mfreader r, denonce *d
uint32_t Nt, NtLast, NtProbe, NtEnc, Ks1; uint32_t Nt, NtLast, NtProbe, NtEnc, Ks1;
int i, m; int i;
uint32_t m;
// Prepare AUTH command // Prepare AUTH command
Auth[0] = (t.sectors[e_sector].foundKeyA) ? MC_AUTH_A : MC_AUTH_B; Auth[0] = (t.sectors[e_sector].foundKeyA) ? MC_AUTH_A : MC_AUTH_B;

View file

@ -56,7 +56,7 @@ typedef struct {
typedef struct { typedef struct {
uint64_t *brokenKeys; uint64_t *brokenKeys;
int32_t size; uint32_t size;
} bKeys; } bKeys;
typedef struct { typedef struct {