Forced int64 type for Session batch argument

This commit is contained in:
Bruno
2023-02-06 15:25:10 +01:00
parent 3b51a6e2a9
commit 8967f5f090
2 changed files with 3 additions and 3 deletions

View File

@@ -236,7 +236,7 @@ void SessionCreator::loadInputCallbacks(tinyxml2::XMLElement *inputsNode)
if (input > 0) {
Target target;
uint64_t sid = 0;
size_t bid = 0;
uint64_t bid = 0;
if ( xmlCurrent_->QueryUnsigned64Attribute("id", &sid) != XML_NO_ATTRIBUTE ) {
// find the source with the given id
SourceList::iterator sit = session_->find(sid);
@@ -247,7 +247,7 @@ void SessionCreator::loadInputCallbacks(tinyxml2::XMLElement *inputsNode)
}
else if ( xmlCurrent_->QueryUnsigned64Attribute("batch", &bid) != XML_NO_ATTRIBUTE ) {
// assign variant
target = bid;
target = (size_t) bid;
}
// if could identify the target