[OpenSIPS-Devel] [OpenSIPS/opensips] 34af3c: pvv_is_int(): Be even more flexible

Liviu Chircu noreply at github.com
Thu Feb 4 18:41:50 EST 2021


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 34af3c45446ff7cef8ebd6176a94bb4a841418b7
      https://github.com/OpenSIPS/opensips/commit/34af3c45446ff7cef8ebd6176a94bb4a841418b7
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2021-02-04 (Thu, 04 Feb 2021)

  Changed paths:
    M pvar.h

  Log Message:
  -----------
  pvv_is_int(): Be even more flexible

This patch further improves commit 6191f278a, where the macro will now
also work with code such as:

(excerpt from pv_set_count()):
    ...
    pv_val.flags = PV_TYPE_INT;
    pv_val.ri = pv_name->pvp.pvi.u.ival-1;
    ...

Notice how the flags are poorly set, since the PV_VAL_INT bit should
have been used instead.





More information about the Devel mailing list