Commit 58bf8da0 authored by Laurent Belcour's avatar Laurent Belcour

[Python] Updating license and removing a compilation warning

parent 9621b829
......@@ -2,6 +2,7 @@
Copyright (C) 2014, 2015, 2016 Inria
Copyright (C) 2015 Université de Montréal
Copyright (C) 2018 Unity
This file is part of ALTA.
......
/* ALTA --- Analysis of Bidirectional Reflectance Distribution Functions
Copyright (C) 2015 Université de Montréal
Copyright (C) 2018 Unity
This file is part of ALTA.
......@@ -63,7 +64,7 @@ inline void register_vec(py::module& m) {
.def("__add__", &vec_add)
.def("__sub__", &vec_sub)
.def("__len__", &vec::size)
.def("__getitem__", [](const vec &s, size_t i) {
.def("__getitem__", [](const vec &s, unsigned int i) {
if (i >= s.size()) throw py::index_error();
return s[i];
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment