Skip to content

Commit

Permalink
Merge pull request #94 from enkelli/bug-type-error-float-to-range
Browse files Browse the repository at this point in the history
Fix TypeError: 'float' object cannot be interpreted as an integer.
  • Loading branch information
decalage2 committed Apr 9, 2018
2 parents da25a68 + 409e3ef commit 5c5e195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion olefile/olefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2131,7 +2131,7 @@ def getproperties(self, filename, convert_time=False, no_conversion=None):
return data

# clamp num_props based on the data length
num_props = min(num_props, len(s) / 8)
num_props = min(num_props, int(len(s) / 8))

for i in iterrange(num_props):
property_id = 0 # just in case of an exception
Expand Down

0 comments on commit 5c5e195

Please sign in to comment.