Skip to content

Commit

Permalink
lib/srdb1: add uint support for db->pv conversions
Browse files Browse the repository at this point in the history
- add support for converting unsigned integers into PVs.
  • Loading branch information
devopsec committed Apr 26, 2024
1 parent 7cdd293 commit 9d3e5f3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/srdb1/db_ut.c
Expand Up @@ -596,6 +596,10 @@ int db_val2pv_spec(struct sip_msg *msg, db_val_t *dbval, pv_spec_t *pvs)
pv.flags = PV_VAL_INT | PV_TYPE_INT;
pv.ri = (long)dbval->val.int_val;
break;
case DB1_UINT:
pv.flags = PV_VAL_INT | PV_TYPE_INT;
pv.ri = (long)dbval->val.uint_val;
break;
case DB1_DATETIME:
pv.flags = PV_VAL_INT | PV_TYPE_INT;
pv.ri = (long)dbval->val.time_val;
Expand Down

0 comments on commit 9d3e5f3

Please sign in to comment.