Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 0ee9f080 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

zlatms: Fix somz issues reported by coverity

parent 92a009c5
No related branches found
No related tags found
No related merge requests found
...@@ -155,6 +155,7 @@ void chameleon_pzlatms( cham_dist_t idist, unsigned long long int seed, cham_sym ...@@ -155,6 +155,7 @@ void chameleon_pzlatms( cham_dist_t idist, unsigned long long int seed, cham_sym
if ( alloc_d ) { if ( alloc_d ) {
free( D ); free( D );
} }
return;
} }
} }
} }
......
...@@ -130,7 +130,7 @@ int CORE_zlatm1( int MODE, double COND, int IRSIGN, cham_dist_t DIST, ...@@ -130,7 +130,7 @@ int CORE_zlatm1( int MODE, double COND, int IRSIGN, cham_dist_t DIST,
coreblas_error(3, "illegal value of COND"); coreblas_error(3, "illegal value of COND");
return -3; return -3;
} }
if ( ( (MODE != -6) || (MODE != 6) ) && if ( ( (MODE == -6) || (MODE == 6) ) &&
( (DIST < ChamDistUniform) || (DIST > ChamDistSymmetric) ) ) ( (DIST < ChamDistUniform) || (DIST > ChamDistSymmetric) ) )
{ {
coreblas_error(4, "illegal value of DIST"); coreblas_error(4, "illegal value of DIST");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment