Module: kamailio
Branch: master
Commit: cacae7fc5db5418a67d543995273280d57f027c6
URL:
https://github.com/kamailio/kamailio/commit/cacae7fc5db5418a67d543995273280…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-04-28T13:31:41+02:00
sms: use unsigned int for bit shifting for compiler warnings
---
Modified: src/modules/sms/libsms_getsms.c
---
Diff:
https://github.com/kamailio/kamailio/commit/cacae7fc5db5418a67d543995273280…
Patch:
https://github.com/kamailio/kamailio/commit/cacae7fc5db5418a67d543995273280…
---
diff --git a/src/modules/sms/libsms_getsms.c b/src/modules/sms/libsms_getsms.c
index e8c7590456..a98cfd80d8 100644
--- a/src/modules/sms/libsms_getsms.c
+++ b/src/modules/sms/libsms_getsms.c
@@ -55,7 +55,7 @@ mailto:s.frings@mail.isis.de
/* converts an octet to a 8-Bit value */
static inline int octet2bin(char* octet)
{
- int result=0;
+ unsigned int result=0;
if (octet[0]>57)
result=octet[0]-55;
@@ -66,7 +66,7 @@ static inline int octet2bin(char* octet)
result+=octet[1]-55;
else
result+=octet[1]-48;
- return result;
+ return (int)result;
}