Browse code

Merge bdb1e9382c7bc4df1d29c96dfae70559713ec7b3 into e419bad759dc817ba673563ec4e79681f685dc28

Ivan Murashko authored on 26/10/2020 04:42:09 • GitHub committed on 26/10/2020 04:42:09
Showing 1 changed files
... ...
@@ -598,7 +598,7 @@ int db_val2pv_spec(struct sip_msg* msg, db_val_t *dbval, pv_spec_t *pvs)
598 598
 				db_longlong2str(dbval->val.ll_val, ll_buf, &pv.rs.len);
599 599
 				pv.rs.s = ll_buf;
600 600
 				/* if it fits, also store as 32 bit integer*/
601
-				if (! ((unsigned long long)dbval->val.ll_val & 0xffffffff00000000ULL)) {
601
+				if (! ((unsigned long long)dbval->val.ll_val & 0xffffffff80000000ULL)) {
602 602
 					pv.flags |= PV_VAL_INT | PV_TYPE_INT;
603 603
 					pv.ri = (int)dbval->val.ll_val;
604 604
 				}