aboutsummaryrefslogtreecommitdiff
path: root/ethosu/tensor_allocator/tensor_allocatormodule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ethosu/tensor_allocator/tensor_allocatormodule.cpp')
-rw-r--r--ethosu/tensor_allocator/tensor_allocatormodule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ethosu/tensor_allocator/tensor_allocatormodule.cpp b/ethosu/tensor_allocator/tensor_allocatormodule.cpp
index 79ee95ad..02488add 100644
--- a/ethosu/tensor_allocator/tensor_allocatormodule.cpp
+++ b/ethosu/tensor_allocator/tensor_allocatormodule.cpp
@@ -53,7 +53,7 @@ static PyObject *method_allocate (PyObject *self, PyObject *args)
}
/* Unpack the length of the input integer list. */
- int input_length = PyObject_Length (input_list_object);
+ int input_length = static_cast<int>(PyObject_Length (input_list_object));
if (input_length < 0) {
input_length = 0;
}