diff --git a/tests/Test_cshift.cc b/tests/Test_cshift.cc index 85f8529c..e571a338 100644 --- a/tests/Test_cshift.cc +++ b/tests/Test_cshift.cc @@ -66,7 +66,8 @@ int main (int argc, char ** argv) nrm = abs(scm-cm()()()); std::vector peer(4); - int index=real(cm); + Complex tmp =cm; + Integer index=real(tmp); Fine.CoorFromIndex(peer,index,latt_size); if (nrm > 0){