提交 ee8ca023 authored 作者: Frederic Bastien's avatar Frederic Bastien 提交者: Reyhane Askari

make sure to print int64 on all platform

上级 7cac0d42
......@@ -100,13 +100,13 @@ def make_checks(loop_orders, dtypes, sub):
check += """
if (%%(lv%(j0)s)s_n%(x0)s != %%(lv%(j)s)s_n%(x)s)
{
PyErr_Format(PyExc_ValueError, "Input dimension mis-match. (input[%%%%i].shape[%%%%i] = %%%%li, input[%%%%i].shape[%%%%i] = %%%%li)",
PyErr_Format(PyExc_ValueError, "Input dimension mis-match. (input[%%%%i].shape[%%%%i] = %%%%lli, input[%%%%i].shape[%%%%i] = %%%%lli)",
%(j0)s,
%(x0)s,
(long int) %%(lv%(j0)s)s_n%(x0)s,
(long long int) %%(lv%(j0)s)s_n%(x0)s,
%(j)s,
%(x)s,
(long int) %%(lv%(j)s)s_n%(x)s
(long long int) %%(lv%(j)s)s_n%(x)s
);
%%(fail)s
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论