diff options
author | Ben Chan <benchan@chromium.org> | 2014-05-29 22:25:39 -0700 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2014-05-30 08:43:19 +0200 |
commit | 502804bcbf18d7aef237972131084399c6f85b2c (patch) | |
tree | 19d41756b8d3a0535619179d160b537a631f2017 /src | |
parent | 7d0a62e75d07051d9767cb756c2b47e7fa12f013 (diff) |
cli,nas: fix constant out of range issue in comparison
This patch fixes a constant out of range issue in the following comparison:
qmicli-nas.c:2407:24: error: comparison of constant 4294967295 with expression of type 'guint16' (aka 'unsigned short')
is always false [-Werror,-Wtautological-constant-out-of-range-compare]
if (cell_id_16 == 0xFFFFFFFF)
~~~~~~~~~~ ^ ~~~~~~~~~~
Diffstat (limited to 'src')
-rw-r--r-- | src/qmicli/qmicli-nas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmicli/qmicli-nas.c b/src/qmicli/qmicli-nas.c index 015ff71..fb0c803 100644 --- a/src/qmicli/qmicli-nas.c +++ b/src/qmicli/qmicli-nas.c @@ -2404,7 +2404,7 @@ get_cell_location_info_ready (QmiClientNas *client, gchar *plmn; g_print ("UMTS Info\n"); - if (cell_id_16 == 0xFFFFFFFF) + if (cell_id_16 == 0xFFFF) g_print ("\tCell ID: 'unavailable'\n"); else g_print ("\tCell ID: '%" G_GUINT16_FORMAT"'\n", cell_id_16); |