diff --git a/libsparse/simg_dump.py b/libsparse/simg_dump.py index 8811a52fc..47537caf6 100755 --- a/libsparse/simg_dump.py +++ b/libsparse/simg_dump.py @@ -158,7 +158,7 @@ def main(): curtype = format("Fill with 0x%08X" % (fill)) if showhash: h = hashlib.sha1() - data = fill_bin * (blk_sz / 4); + data = fill_bin * (blk_sz // 4); for block in range(chunk_sz): h.update(data) curhash = h.hexdigest()