Skip to content

Commit

Permalink
refactor: loop with uint_32 index to avoid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcBresson committed Sep 23, 2023
1 parent a39c973 commit c05afed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jsonserializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ String serializerList(std::vector<String> array, bool enclose){
s = "";
}

for(int i = 0; i < array.size(); i++){
for(uint16_t i = 0; i < array.size(); i++){
if(array[i][0] == '{' || array[i][0] == '(' || array[i][0] == '[' || array[i] == "false" || array[i] == "true"){
s += array[i];
} else {
Expand All @@ -41,7 +41,7 @@ String serializerDict(std::vector<Dict> dictionnary, bool enclose){
s = "";
}

for(int i = 0; i < dictionnary.size(); i++){
for(uint16_t i = 0; i < dictionnary.size(); i++){
s += serializerKeyValue(dictionnary[i].key, dictionnary[i].value);
s += ",";
}
Expand Down

0 comments on commit c05afed

Please sign in to comment.