Browse code

pua_dialoginfo: cast to unsigned for compile warnings on bitwise shifting

Daniel-Constantin Mierla authored on 19/07/2022 20:27:59
Showing 1 changed files
... ...
@@ -364,7 +364,7 @@ __dialog_sendpublish(struct dlg_cell *dlg, int type, struct dlg_cb_params *_para
364 364
 	}
365 365
 
366 366
 	if(use_pubruri_avps && (refresh_pubruri_avps_flag > -1
367
-		|| (request->flags & (1<<refresh_pubruri_avps_flag))))
367
+		|| (request->flags & (1U<<(unsigned int)refresh_pubruri_avps_flag))))
368 368
 	{
369 369
 		lock_get(&dlginfo->lock);
370 370
 		refresh_pubruri_avps(dlginfo, &uri);
... ...
@@ -516,7 +516,7 @@ __dialog_sendpublish(struct dlg_cell *dlg, int type, struct dlg_cb_params *_para
516 516
 	}
517 517
 
518 518
 	if(use_pubruri_avps && (refresh_pubruri_avps_flag > -1
519
-		|| (request->flags & (1<<refresh_pubruri_avps_flag))))
519
+		|| (request->flags & (1U<<(unsigned int)refresh_pubruri_avps_flag))))
520 520
 	{
521 521
 		lock_release(&dlginfo->lock);
522 522
 	}