浏览代码

dtoc: Fix the value of SetInt()

This does not set the correct value at present. Fix it.

Signed-off-by: Simon Glass <sjg@chromium.org>
Simon Glass 6 年之前
父节点
当前提交
41b781ddf1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/dtoc/fdt.py

+ 1 - 1
tools/dtoc/fdt.py

@@ -171,7 +171,7 @@ class Prop:
             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