X-Git-Url: http://plrg.eecs.uci.edu/git/?p=libcds.git;a=blobdiff_plain;f=test%2Finclude%2Fcds_test%2Ffc_hevy_value.h;h=4159bd7f45bcb8dd980adfc61fda21548b59df53;hp=9208a1164d7a7b4c3e536fb25e8c794b7ad566a9;hb=c9519ba382f90ce5f4e4369cf2b6ac2c57a73ff8;hpb=9a5c7c02ee10fd31377adedd52d57c56366561c1 diff --git a/test/include/cds_test/fc_hevy_value.h b/test/include/cds_test/fc_hevy_value.h index 9208a116..4159bd7f 100644 --- a/test/include/cds_test/fc_hevy_value.h +++ b/test/include/cds_test/fc_hevy_value.h @@ -53,8 +53,9 @@ namespace fc_test { , nNo(other.nNo) , nWriterNo(other.nWriterNo) { + // This is an imitation of heavy copy ctor for(size_t i = 0; i < buffer_size; ++i) - pop_buff[i] = static_cast(std::sqrt(other.pop_buff[i]*rand())); + pop_buff[i] = static_cast( std::sqrt( std::abs( static_cast( pop_buff[i] ) * rand()))); } void set_array(size_t new_size)