diff --git a/examples/12_span_write.cpp b/examples/12_span_write.cpp index e2efcffdaa..201e062ff9 100644 --- a/examples/12_span_write.cpp +++ b/examples/12_span_write.cpp @@ -44,9 +44,11 @@ void span_write(std::string const &filename) } for (auto record : {"numParticlesOffset", "numParticles"}) { - patches[record].resetDataset({Datatype::INT, {1}}); - *patches[record].storeChunk({0}, {1}).currentBuffer().data() = - 42; + patches[record].resetDataset({Datatype::ULONG, {1}}); + *patches[record] + .storeChunk({0}, {1}) + .currentBuffer() + .data() = 42; } Record electronPositions = iteration.particles["e"]["position"];