diff --git a/lib/tensors/Tensor_inner.h b/lib/tensors/Tensor_inner.h index bbb35605..c77adff1 100644 --- a/lib/tensors/Tensor_inner.h +++ b/lib/tensors/Tensor_inner.h @@ -10,7 +10,8 @@ namespace Grid { typedef typename sobj::scalar_type scalar; decltype(innerProduct(arg,arg)) nrm; nrm = innerProduct(arg,arg); - return real(nrm); + RealD ret = real(nrm); + return ret; } template inline