From a18a1b2369309562914e3a7ed6812566bdbf2177 Mon Sep 17 00:00:00 2001 From: Lukas Winkler Date: Wed, 4 Jan 2023 14:50:29 +0100 Subject: [PATCH] fix typo in ternary operator --- src/ic_generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ic_generator.cc b/src/ic_generator.cc index 72bdecf..7bc9733 100644 --- a/src/ic_generator.cc +++ b/src/ic_generator.cc @@ -534,7 +534,7 @@ int run( config_file& the_config ) if( the_output_plugin->write_species_as( this_species ) == output_type::particles ) { // somewhat arbitrarily, start baryon particle IDs from 2**31 if we have 32bit and from 2**56 if we have 64 bits - size_t IDoffset = (this_species == cosmo_species::baryon)? ((the_output_plugin->has_64bit_ids())? 1 : 1): 0 ; + size_t IDoffset = (this_species == cosmo_species::baryon) ? the_output_plugin->has_64bit_ids() : 0; // allocate particle structure and generate particle IDs bool secondary_lattice = (this_species == cosmo_species::baryon &&