job/dispatch: don't unconditionally cast parameters

This commit is contained in:
Danny Robson 2018-03-27 16:16:35 +11:00
parent d941188dd5
commit 45fa54a5ee

View File

@ -54,7 +54,7 @@ namespace util::job {
for (auto p: param) {
if (!inner_data.extent ().exclusive (p))
continue;
inner_data[p][0] = std::invoke (func, p.template cast<float> (), inner_args...);
inner_data[p][0] = std::invoke (func, p, inner_args...);
}
};