diff --git a/orchagent/qosorch.cpp b/orchagent/qosorch.cpp index e7761cd5d6c5..390324a1a6e5 100644 --- a/orchagent/qosorch.cpp +++ b/orchagent/qosorch.cpp @@ -816,25 +816,25 @@ task_process_status QosOrch::handleSchedulerTable(Consumer& consumer) else if (fvField(*i) == scheduler_min_bandwidth_rate_field_name) { attr.id = SAI_SCHEDULER_ATTR_MIN_BANDWIDTH_RATE; - attr.value.u64 = (uint64_t)stoi(fvValue(*i)); + attr.value.u64 = stoul(fvValue(*i)); sai_attr_list.push_back(attr); } else if (fvField(*i) == scheduler_min_bandwidth_burst_rate_field_name) { attr.id = SAI_SCHEDULER_ATTR_MIN_BANDWIDTH_BURST_RATE; - attr.value.u64 = (uint64_t)stoi(fvValue(*i)); + attr.value.u64 = stoul(fvValue(*i)); sai_attr_list.push_back(attr); } else if (fvField(*i) == scheduler_max_bandwidth_rate_field_name) { attr.id = SAI_SCHEDULER_ATTR_MAX_BANDWIDTH_RATE; - attr.value.u64 = (uint64_t)stoi(fvValue(*i)); + attr.value.u64 = stoul(fvValue(*i)); sai_attr_list.push_back(attr); } else if (fvField(*i) == scheduler_max_bandwidth_burst_rate_field_name) { attr.id = SAI_SCHEDULER_ATTR_MAX_BANDWIDTH_BURST_RATE; - attr.value.u64 = (uint64_t)stoi(fvValue(*i)); + attr.value.u64 = stoul(fvValue(*i)); sai_attr_list.push_back(attr); } else {