dtoc: Fix the value of SetInt()
[platform/kernel/u-boot.git] / tools / dtoc / fdt.py
index 2df2d4b..9ad72f8 100644 (file)
@@ -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