Skip to content

Commit 2c1f7c2

Browse files
authored
Merge pull request #917 from SpiNNakerManchester/bit_field_error
avoid making a invalid error message
2 parents 71e7d34 + ab390c1 commit 2c1f7c2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

neural_modelling/src/neuron/population_table/population_table_binary_search_impl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ static inline void print_bitfields(uint32_t mp_i, uint32_t start,
294294

295295
bool population_table_load_bitfields(filter_region_t *filter_region) {
296296

297+
if (master_population_table_length == 0) {
298+
return true;
299+
}
297300
// try allocating DTCM for starting array for bitfields
298301
connectivity_bit_field =
299302
spin1_malloc(sizeof(bit_field_t) * master_population_table_length);

0 commit comments

Comments
 (0)