Module: kamailio
Branch: master
Commit: 6380cab25f429104062fd417fc8045ff10b0e658
URL:
https://github.com/kamailio/kamailio/commit/6380cab25f429104062fd417fc8045f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-07-19T22:27:59+02:00
pua_dialoginfo: cast to unsigned for compile warnings on bitwise shifting
---
Modified: src/modules/pua_dialoginfo/pua_dialoginfo.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6380cab25f429104062fd417fc8045f…
Patch:
https://github.com/kamailio/kamailio/commit/6380cab25f429104062fd417fc8045f…
---
diff --git a/src/modules/pua_dialoginfo/pua_dialoginfo.c
b/src/modules/pua_dialoginfo/pua_dialoginfo.c
index 1e4f17110d..f9e4b02b84 100644
--- a/src/modules/pua_dialoginfo/pua_dialoginfo.c
+++ b/src/modules/pua_dialoginfo/pua_dialoginfo.c
@@ -364,7 +364,7 @@ __dialog_sendpublish(struct dlg_cell *dlg, int type, struct
dlg_cb_params *_para
}
if(use_pubruri_avps && (refresh_pubruri_avps_flag > -1
- || (request->flags & (1<<refresh_pubruri_avps_flag))))
+ || (request->flags & (1U<<(unsigned int)refresh_pubruri_avps_flag))))
{
lock_get(&dlginfo->lock);
refresh_pubruri_avps(dlginfo, &uri);
@@ -516,7 +516,7 @@ __dialog_sendpublish(struct dlg_cell *dlg, int type, struct
dlg_cb_params *_para
}
if(use_pubruri_avps && (refresh_pubruri_avps_flag > -1
- || (request->flags & (1<<refresh_pubruri_avps_flag))))
+ || (request->flags & (1U<<(unsigned int)refresh_pubruri_avps_flag))))
{
lock_release(&dlginfo->lock);
}