1
0
Fork 0
mirror of https://github.com/cosmo-sims/MUSIC.git synced 2024-09-19 17:03:46 +02:00

fixed some compiler warnings

This commit is contained in:
Oliver Hahn 2023-02-04 20:24:21 -08:00
parent 0f80056e40
commit 1e8eeef76a

View file

@ -375,7 +375,7 @@ void delete_duplicates( void )
{
if( REMOVE_DECORATION_BITS(P[i].Lagrange_ID) != REMOVE_DECORATION_BITS(P[j-1].Lagrange_ID) )
{
memcpy( &P[j], &P[i], sizeof(particle) );
memcpy( reinterpret_cast<void*>(&P[j]), reinterpret_cast<void*>(&P[i]), sizeof(particle) );
idmap[ REMOVE_DECORATION_BITS(P[j].Lagrange_ID) ] = j;
++j;
}else{
@ -1124,7 +1124,7 @@ public:
if( num_p + newnum_p_per_split > num_p_alloc )
{
P = (particle*) realloc( P, (num_p_alloc+=num_p_realloc_blocksize)*sizeof(particle) );
P = reinterpret_cast<particle*>( realloc( reinterpret_cast<void*>(P), (num_p_alloc+=num_p_realloc_blocksize)*sizeof(particle) ) );
LOGINFO("reallocated particle buffer. new size = %llu MBytes.", num_p_alloc * sizeof(particle)/1024/1024 );
}
split_lagrange_cube( ip );