diff --git a/pdfminer/utils.py b/pdfminer/utils.py
index <HASH>..<HASH> 100644
--- a/pdfminer/utils.py
+++ b/pdfminer/utils.py
@@ -106,7 +106,7 @@ def fsplit(pred, objs):
 def drange(v0, v1, d):
     """Returns a discrete range."""
     assert v0 < v1
-    return xrange(int(v0)/d, int(v1+d-1)/d)
+    return xrange(int(v0)/d, int(v1+d)/d)
 
 # get_bound
 def get_bound(pts):
fixed: crash due to small layout elements (thanks to hsoft)