clang fix
This commit is contained in:
@@ -56,10 +56,10 @@ json_t *AIDSearchInit(bool verbose) {
|
||||
return root;
|
||||
}
|
||||
|
||||
json_t *AIDSearchGetElm(json_t *root, int elmindx) {
|
||||
json_t *AIDSearchGetElm(json_t *root, size_t elmindx) {
|
||||
json_t *data = json_array_get(root, elmindx);
|
||||
if (!json_is_object(data)) {
|
||||
PrintAndLogEx(ERR, "data [%d] is not an object\n", elmindx);
|
||||
PrintAndLogEx(ERR, "data [%zu] is not an object\n", elmindx);
|
||||
return NULL;
|
||||
}
|
||||
return data;
|
||||
@@ -121,7 +121,7 @@ int PrintAIDDescription(json_t *xroot, char *aid, bool verbose) {
|
||||
|
||||
json_t *elm = NULL;
|
||||
uint32_t maxaidlen = 0;
|
||||
for (uint32_t elmindx = 0; elmindx < json_array_size(root); elmindx++) {
|
||||
for (size_t elmindx = 0; elmindx < json_array_size(root); elmindx++) {
|
||||
json_t *data = AIDSearchGetElm(root, elmindx);
|
||||
if (data == NULL)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user