commit | 990c673f0150db86b7cc7118dbf5a70ce6aa5eeb | [log] [tgz] |
---|---|---|
author | Bin Meng <bmeng.cn@gmail.com> | Mon Jul 06 15:57:06 2015 +0800 |
committer | Simon Glass <sjg@chromium.org> | Tue Jul 14 18:03:19 2015 -0600 |
tree | a7e39522c0b7c53540041e516640e49563034b5a | |
parent | ec6a7335f68ce98e2d99bbffb3d36acc022cf2a3 [diff] |
tools: ifdtool: Write correct offset on 32-bit machine On 32-bit machine strtol() returns LONG_MAX which is 0x7fffffff, which is wrong for u-boot.rom components like u-boot-x86-16bit.bin. Change to use strtoll() so that it works on both 32-bit and 64-bit machines. Reported-by: Fei Wang <wangfei.jimei@gmail.com> Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>