Browse code

Merge bdb1e9382c7bc4df1d29c96dfae70559713ec7b3 into 92cfb5e8d291706889c926892397e663e2d93b05

Ivan Murashko authored on 22/09/2020 22:30:22 • GitHub committed on 22/09/2020 22:30:22
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
 				}