mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-19 14:19:57 +01:00
Forced int64 type for Session batch argument
This commit is contained in:
@@ -236,7 +236,7 @@ void SessionCreator::loadInputCallbacks(tinyxml2::XMLElement *inputsNode)
|
|||||||
if (input > 0) {
|
if (input > 0) {
|
||||||
Target target;
|
Target target;
|
||||||
uint64_t sid = 0;
|
uint64_t sid = 0;
|
||||||
size_t bid = 0;
|
uint64_t bid = 0;
|
||||||
if ( xmlCurrent_->QueryUnsigned64Attribute("id", &sid) != XML_NO_ATTRIBUTE ) {
|
if ( xmlCurrent_->QueryUnsigned64Attribute("id", &sid) != XML_NO_ATTRIBUTE ) {
|
||||||
// find the source with the given id
|
// find the source with the given id
|
||||||
SourceList::iterator sit = session_->find(sid);
|
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 ) {
|
else if ( xmlCurrent_->QueryUnsigned64Attribute("batch", &bid) != XML_NO_ATTRIBUTE ) {
|
||||||
// assign variant
|
// assign variant
|
||||||
target = bid;
|
target = (size_t) bid;
|
||||||
}
|
}
|
||||||
|
|
||||||
// if could identify the target
|
// if could identify the target
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ void SessionVisitor::saveInputCallbacks(tinyxml2::XMLDocument *doc, Session *ses
|
|||||||
}
|
}
|
||||||
// 2. Case of variant as index of batch
|
// 2. Case of variant as index of batch
|
||||||
else if ( const size_t* v = std::get_if<size_t>(&kit->first)) {
|
else if ( const size_t* v = std::get_if<size_t>(&kit->first)) {
|
||||||
cbNode->SetAttribute("batch", *v);
|
cbNode->SetAttribute("batch", (uint64_t) *v);
|
||||||
}
|
}
|
||||||
inputsNode->InsertEndChild(cbNode);
|
inputsNode->InsertEndChild(cbNode);
|
||||||
// launch visitor to complete attributes
|
// launch visitor to complete attributes
|
||||||
|
|||||||
Reference in New Issue
Block a user