Skip to content

Commit 9228996

Browse files
fix: can't touch bytes_data with crc if not copying
1 parent 959e3a6 commit 9228996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mapbuffer/mapbuffer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ def dict2buf(self, data, compress=None, tobytesfn=None):
288288
noop = lambda x: x
289289
tobytesfn = nvl(tobytesfn, self.tobytesfn, noop)
290290

291-
if tobytesfn == noop and compress is None:
291+
if tobytesfn == noop and compress is None and not self.compute_crc:
292292
bytes_data = data
293293
else:
294294
bytes_data = {

0 commit comments

Comments
 (0)