Commit fa5fbacf authored by captainwong's avatar captainwong

fix warningng

parent 76eb8c9c
...@@ -553,7 +553,7 @@ struct ZoneResponse { ...@@ -553,7 +553,7 @@ struct ZoneResponse {
bool parse(ZoneAndProperties& zps, bool& hasMore) { bool parse(ZoneAndProperties& zps, bool& hasMore) {
if (len < min_len || data[3] != len) { return false; } // check valid again if (len < min_len || data[3] != len) { return false; } // check valid again
Char sum_ = data[len - 1]; sum(data, len); if (sum_ != data[len - 1]) { return false; } // check sum again Char sum_ = data[len - 1]; sum(data, len); if (sum_ != data[len - 1]) { return false; } // check sum again
Char count = (len - min_len) / 2; // zone/prop pairs Char count = (len - min_len) >> 2; // zone/prop pairs
if (count == 0) { zps.clear(); hasMore = false; return true; } if (count == 0) { zps.clear(); hasMore = false; return true; }
for (Char i = 0; i < count; i++) { for (Char i = 0; i < count; i++) {
ZoneAndProperty zp; ZoneAndProperty zp;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment