From: Michael Stapelberg Date: Fri, 25 Sep 2015 09:05:51 +0000 (+0200) Subject: Fix comparison between signed/unsigned warning for real X-Git-Tag: 2.10~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=06a133135f4dd0f0618cccd0c4d046f8d60c9790;p=i3%2Fi3status Fix comparison between signed/unsigned warning for real --- diff --git a/src/print_wireless_info.c b/src/print_wireless_info.c index 79e4cd8..039ae19 100644 --- a/src/print_wireless_info.c +++ b/src/print_wireless_info.c @@ -125,7 +125,7 @@ static void find_ssid(uint8_t *ies, uint32_t ies_len, uint8_t **ssid, uint32_t * } if (ies_len < 2) return; - if (ies_len < 2 + (uint8_t)ies[1]) + if (ies_len < (uint32_t)(2 + ies[1])) return; *ssid_len = ies[1];