Skip to content

Commit 0cb253a

Browse files
authored
Fix object availability conversion (#974)
1 parent 69517ba commit 0cb253a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/ClientSai.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ sai_status_t ClientSai::waitForObjectTypeGetAvailabilityResponse(
648648

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

651-
*count = std::stol(availability_str);
651+
*count = std::stoull(availability_str);
652652

653653
SWSS_LOG_DEBUG("Received payload: count = %lu", *count);
654654
}

lib/RedisRemoteSaiInterface.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ sai_status_t RedisRemoteSaiInterface::waitForObjectTypeGetAvailabilityResponse(
894894

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

897-
*count = std::stol(availability_str);
897+
*count = std::stoull(availability_str);
898898

899899
SWSS_LOG_DEBUG("Received payload: count = %lu", *count);
900900
}

0 commit comments

Comments
 (0)