[OpenSIPS-Devel] [OpenSIPS/opensips] 0f884d: pvv_is_int(): Be even	more flexible
    Liviu Chircu 
    noreply at github.com
       
    Thu Feb  4 18:42:28 EST 2021
    
    
  
  Branch: refs/heads/3.1
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 0f884dab9140c5dd097019e62daad22518f8f1bc
      https://github.com/OpenSIPS/opensips/commit/0f884dab9140c5dd097019e62daad22518f8f1bc
  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.
(cherry picked from commit 34af3c45446ff7cef8ebd6176a94bb4a841418b7)
    
    
More information about the Devel
mailing list