diff options
author | Dan Horák <dan@danny.cz> | 2018-09-01 14:15:41 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2018-09-02 15:35:59 +1000 |
commit | 0fd1c8c783f3ee31af934ce7aacf8211961e23f2 (patch) | |
tree | 0e27288f3ff970ddef0a98e65e516dd1c0bbfdc8 /pylibfdt | |
parent | 04853cad18f423647d283062d1cb98f63c401720 (diff) | |
download | device-tree-compiler-0fd1c8c783f3ee31af934ce7aacf8211961e23f2.tar.gz |
pylibfdt: fdt_get_mem_rsv returns 2 uint64_t values
Fix typemap for fdt_get_mem_rsv so it returns 64-bit values.
Fixes https://github.com/dgibson/dtc/issues/15.
Signed-off-by: Dan Horák <dan@danny.cz>
[dwg: Adjusted commit message for typo and context]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'pylibfdt')
-rw-r--r-- | pylibfdt/libfdt.i | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylibfdt/libfdt.i b/pylibfdt/libfdt.i index 1bbc5e3..5e8e05d 100644 --- a/pylibfdt/libfdt.i +++ b/pylibfdt/libfdt.i @@ -1068,7 +1068,7 @@ typedef uint32_t fdt32_t; } %typemap(argout) uint64_t * { - PyObject *val = PyLong_FromUnsignedLong(*arg$argnum); + PyObject *val = PyLong_FromUnsignedLongLong(*arg$argnum); if (!result) { if (PyTuple_GET_SIZE(resultobj) == 0) resultobj = val; |