Mentions légales du service

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

Minor

parent 8731353a
No related branches found
No related tags found
No related merge requests found
......@@ -918,12 +918,12 @@ spmCopy( const pastix_spm_t *spm )
}
if(spm->dofs != NULL) {
newspm->dofs = (pastix_int_t*)malloc(dofsize * sizeof(pastix_int_t));
memcpy( newspm->dofs, spm->dofs, dofsize * sizeof(pastix_int_t));
memcpy( newspm->dofs, spm->dofs, dofsize * sizeof(pastix_int_t) );
}
if(spm->values != NULL) {
valsize = valsize * pastix_size_of( spm->flttype );
newspm->values = malloc(valsize);
memcpy( newspm->values, spm->values, valsize);
memcpy( newspm->values, spm->values, valsize );
}
return newspm;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment