Skip to content

Commit

Permalink
Fix object availability conversion (sonic-net#974)
Browse files Browse the repository at this point in the history
  • Loading branch information
abanu-ms authored Nov 29, 2021
1 parent 69517ba commit 0cb253a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ClientSai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ sai_status_t ClientSai::waitForObjectTypeGetAvailabilityResponse(

const std::string &availability_str = fvValue(values[0]);

*count = std::stol(availability_str);
*count = std::stoull(availability_str);

SWSS_LOG_DEBUG("Received payload: count = %lu", *count);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/RedisRemoteSaiInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ sai_status_t RedisRemoteSaiInterface::waitForObjectTypeGetAvailabilityResponse(

const std::string &availability_str = fvValue(values[0]);

*count = std::stol(availability_str);
*count = std::stoull(availability_str);

SWSS_LOG_DEBUG("Received payload: count = %lu", *count);
}
Expand Down

0 comments on commit 0cb253a

Please sign in to comment.