Skip to content

Commit

Permalink
flag fixups: fix a sign conversion bug
Browse files Browse the repository at this point in the history
Reported by @hydrosine
Fixes #448

(cherry picked from commit bc160a7)
  • Loading branch information
liviuchircu committed Apr 1, 2015
1 parent 4634449 commit 0bf58ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flags.h
Expand Up @@ -40,7 +40,7 @@ typedef unsigned int flag_t;

#define fix_flag_name(_s, _flag) \
do { \
if (!_s && _flag > 0) { \
if (!_s && (int)(_flag) > 0) { \
LM_WARN("Integer flags are now deprecated! " \
"Use unique quoted strings!\n"); \
_s = int2str(_flag, NULL); \
Expand Down

0 comments on commit 0bf58ab

Please sign in to comment.