diff options
author | Reinhard Speyerer <rspmn@arcor.de> | 2016-03-19 21:42:06 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2016-03-20 20:33:13 +0100 |
commit | 3df66e941cfd1c14fdcf7dac67c17c6eb0de6ca6 (patch) | |
tree | f623984d2da45f116d594c490d9472449b267789 /build-aux | |
parent | 75d75957e82e40de29de7ccd5dde9eec7f1c0efb (diff) | |
download | external_libqmi-3df66e941cfd1c14fdcf7dac67c17c6eb0de6ca6.zip external_libqmi-3df66e941cfd1c14fdcf7dac67c17c6eb0de6ca6.tar.gz external_libqmi-3df66e941cfd1c14fdcf7dac67c17c6eb0de6ca6.tar.bz2 |
qmicli: fix --dms-get-band-capabilities output on 32-bit platforms
The @enum_name@_build_string_from_mask template in
qmi-flags64-types-template.c uses a local gulong number variable.
On platforms where sizeof(gulong) < sizeof(Qmi*BandCapability) this
may cause bands to be missing from qmicli output or incorrect bands
to be contained in the output. Replace gulong number with guint64
number to fix this.
Signed-off-by: Reinhard Speyerer <rspmn@arcor.de>
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/templates/qmi-flags64-types-template.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build-aux/templates/qmi-flags64-types-template.c b/build-aux/templates/qmi-flags64-types-template.c index c1c5491..a92824c 100644 --- a/build-aux/templates/qmi-flags64-types-template.c +++ b/build-aux/templates/qmi-flags64-types-template.c @@ -49,7 +49,7 @@ gchar * /* Build list with single-bit masks */ if (mask & @enum_name@_values[i].value) { guint c; - gulong number = @enum_name@_values[i].value; + guint64 number = @enum_name@_values[i].value; for (c = 0; number; c++) number &= number - 1; |