Verified Commit 802f8e48 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

data: fix call to templated std::max

parent 1ee84809
......@@ -144,7 +144,7 @@ namespace pinocchio
{
if(lastChild[(Index)i] == -1) lastChild[(Index)i] = i;
const Index & parent = model.parents[(Index)i];
lastChild[parent] = std::max<Scalar>(lastChild[(Index)i],lastChild[parent]);
lastChild[parent] = std::max<int>(lastChild[(Index)i],lastChild[parent]);
nvSubtree[(Index)i]
= idx_v(model.joints[(Index)lastChild[(Index)i]]) + nv(model.joints[(Index)lastChild[(Index)i]])
......
Supports Markdown
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