Skip to content

Commit

Permalink
my_var_t array_len is now int, not float :_)
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl OS committed Dec 4, 2020
1 parent c297300 commit 22259d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FIDL/decompiler_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ def _get_var_type(self):
self.array_type = tif.get_array_element()
self.element_size = self.array_type.get_size()
if self.element_size:
self.array_len = self.size / self.element_size
self.array_len = int(self.size / self.element_size)

# Ex: char *str -> char (None if the type is not a pointer)
if tif.is_ptr():
Expand Down

0 comments on commit 22259d0

Please sign in to comment.