Fix up small but significant typo.

When asking for data with padding, the padding was guaranteed to always
be at the end without spaces between pages.
This commit is contained in:
Mike Auty
2018-05-29 00:42:52 +01:00
parent 67239002bc
commit f72e39d558
+1 -1
View File
@@ -350,7 +350,7 @@ class TranslationLayerInterface(DataLayerInterface, metaclass = ABCMeta):
"Layer {} cannot map offset: {}".format(self.name,
current_offset))
elif offset > current_offset:
output += [b"\x00" * (current_offset - offset)]
output += [b"\x00" * (offset - current_offset)]
current_offset = offset
elif offset < current_offset:
raise exceptions.LayerException("Mapping returned an overlapping element")