mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-28 22:56:32 +00:00
Cast to int32_t->size_t to avoid prefast overflow warning (#14902)
Cast to int32_t->size_t to avoid prefast overflow warning
This commit is contained in:
parent
6c8538f086
commit
f88b97ede2
1 changed files with 1 additions and 1 deletions
|
|
@ -1945,7 +1945,7 @@ namespace Windows::AI::MachineLearning::Adapter
|
|||
ML_CHECK_BOOL(inputIndex < m_inputTensors.size());
|
||||
if (sequenceIndex >= m_inputTensors[inputIndex].size())
|
||||
{
|
||||
opKernelContextWrapper->m_inputTensors[inputIndex].resize(sequenceIndex+1);
|
||||
opKernelContextWrapper->m_inputTensors[inputIndex].resize(static_cast<size_t>(sequenceIndex)+1);
|
||||
}
|
||||
|
||||
if (m_inputTensors[inputIndex][sequenceIndex] == nullptr)
|
||||
|
|
|
|||
Loading…
Reference in a new issue