Skip to content

Commit

Permalink
Fix: unknown variable 'integer'
Browse files Browse the repository at this point in the history
  • Loading branch information
eepp committed Jun 8, 2015
1 parent dcb5a20 commit 9848521
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pytsdl/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1536,17 +1536,17 @@ def _value_assign_event(self, key, value):
pass

def _value_assign_floating_point(self, key, value):
floating_point = self._get_cur_obj()
fp = self._get_cur_obj()

if key == 'exp_dig':
floating_point.exp_dig = value.value
fp.exp_dig = value.value
elif key == 'mant_dig':
floating_point.mant_dig = value.value
fp.mant_dig = value.value
elif key == 'align':
floating_point.align = value.value
fp.align = value.value
elif key == 'byte_order':
bo = value[0].value
integer.byte_order = _DocCreatorVisitor._byte_order_from_str(bo)
fp.byte_order = _DocCreatorVisitor._byte_order_from_str(bo)
else:
raise ParseError('unknown floating point assignment: {}'.format(key))

Expand Down

0 comments on commit 9848521

Please sign in to comment.