From: Jeff Lenk Date: Fri, 31 Jan 2014 17:19:30 +0000 (-0600) Subject: srtp fix cast for last round of fixes X-Git-Tag: v1.5.8~25^2~248 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=558decda2c5f4ef140e7359de73b3bbdbb39dad6;p=thirdparty%2Ffreeswitch.git srtp fix cast for last round of fixes --- diff --git a/libs/srtp/crypto/math/stat.c b/libs/srtp/crypto/math/stat.c index a744f91f88..cf928a80f6 100644 --- a/libs/srtp/crypto/math/stat.c +++ b/libs/srtp/crypto/math/stat.c @@ -24,11 +24,11 @@ debug_module_t mod_stat = { err_status_t stat_test_monobit(uint8_t *data) { uint8_t *data_end = data + STAT_TEST_DATA_LEN; - int ones_count; + uint16_t ones_count; ones_count = 0; while (data < data_end) { - ones_count += octet_get_weight(*data); + ones_count += (uint16_t)octet_get_weight(*data); data++; }