Fix implicit conversion warnings

This commit is contained in:
Gael Guennebaud
2013-06-12 09:25:58 +02:00
parent 92eb807c30
commit f0efe60924
2 changed files with 4 additions and 4 deletions

View File

@@ -26,8 +26,8 @@ EIGEN_LAPACK_FUNC(potrf,(char* uplo, int *n, RealScalar *pa, int *lda, int *info
Scalar* a = reinterpret_cast<Scalar*>(pa);
MatrixType A(a,*n,*n,*lda);
int ret;
if(UPLO(*uplo)==UP) ret = internal::llt_inplace<Scalar, Upper>::blocked(A);
else ret = internal::llt_inplace<Scalar, Lower>::blocked(A);
if(UPLO(*uplo)==UP) ret = int(internal::llt_inplace<Scalar, Upper>::blocked(A));
else ret = int(internal::llt_inplace<Scalar, Lower>::blocked(A));
if(ret>=0)
*info = ret+1;