Skip to content

Commit

Permalink
dtoc: Fix the value of SetInt()
Browse files Browse the repository at this point in the history
This does not set the correct value at present. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
  • Loading branch information
sjg20 committed Oct 9, 2018
1 parent 8c466ed commit 41b781d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/dtoc/fdt.py
Expand Up @@ -171,7 +171,7 @@ def SetInt(self, val):
val: Integer value (32-bit, single cell)
"""
self.bytes = struct.pack('>I', val);
self.value = val
self.value = self.bytes
self.type = TYPE_INT
self.dirty = True

Expand Down

0 comments on commit 41b781d

Please sign in to comment.