提交 c6104ebc authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Fix parentheses around int64 cast. It might or might not change anything.

上级 f396df15
......@@ -18,7 +18,7 @@ from theano.sandbox.cuda.opt import register_opt as gpu_register_opt
from theano.sandbox.cuda import cuda_enabled, CudaNdarrayType #, gpu_from_host, host_from_gpu, CudaNdarrayType
def mulmod(a, b, c, m):
r = numpy.int32(numpy.int64(a*b + c) % m)
r = numpy.int32((numpy.int64(a)*b + c) % m)
return r if r >= 0 else r+m
def matVecModM(A, s, m):
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论