__setitem__: Use integer division for computing # of blocks.
diff --git a/Lib/dumbdbm.py b/Lib/dumbdbm.py
index 2f6bc51..b932f84 100644
--- a/Lib/dumbdbm.py
+++ b/Lib/dumbdbm.py
@@ -114,8 +114,8 @@
self._addkey(key, (pos, siz))
else:
pos, siz = self._index[key]
- oldblocks = (siz + _BLOCKSIZE - 1) / _BLOCKSIZE
- newblocks = (len(val) + _BLOCKSIZE - 1) / _BLOCKSIZE
+ oldblocks = (siz + _BLOCKSIZE - 1) // _BLOCKSIZE
+ newblocks = (len(val) + _BLOCKSIZE - 1) // _BLOCKSIZE
if newblocks <= oldblocks:
pos, siz = self._setval(pos, val)
self._index[key] = pos, siz