diff options
author | Magnus Lundborg <magnus.lundborg@scilifelab.se> | 2013-01-10 16:19:26 (GMT) |
---|---|---|
committer | Magnus Lundborg <magnus.lundborg@scilifelab.se> | 2013-01-10 16:19:26 (GMT) |
commit | 98abaab0c1eaafede2769907a8a1b836ce8770d6 (patch) | |
tree | 90c991663df4bf72520d35b536549ab16fc43d0e /src | |
parent | ceeb85a99ab15516016553a738a8d0ecf0b761f1 (diff) |
Fix bug writing particle data block.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/tng_io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index 5b5f801..bf28e75 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -3437,7 +3437,7 @@ static tng_function_status tng_particle_data_block_write size); tng_swap_byte_order_32(tng_data, (int32_t *)(block->block_contents+offset)); - offset += sizeof(size); + offset += size; } } } @@ -3458,7 +3458,7 @@ static tng_function_status tng_particle_data_block_write size); tng_swap_byte_order_64(tng_data, (int64_t *)(block->block_contents+offset)); - offset += sizeof(size); + offset += size; } } } @@ -3497,7 +3497,7 @@ static tng_function_status tng_particle_data_block_write size); tng_swap_byte_order_64(tng_data, (int64_t *)(block->block_contents+offset)); - offset += sizeof(size); + offset += size; } } } |