[sipify] fix negative value assignment

This commit is contained in:
Denis Rouzaud 2017-06-07 16:34:45 +02:00
parent 542dc85433
commit 67b01dee0c

View File

@ -613,7 +613,7 @@ while ($LINE_IDX < $LINE_COUNT){
last;
}
do {no warnings 'uninitialized';
my $enum_decl = $LINE =~ s/(\s*\w+)(\s+SIP_\w+(?:\([^()]+\))?)?(?:\s*=\s*[\w\s\d<|]+.*?)?(,?).*$/$1$2$3/r;
my $enum_decl = $LINE =~ s/(\s*\w+)(\s+SIP_\w+(?:\([^()]+\))?)?(?:\s*=\s*[\w\s\d<|-]+.*?)?(,?).*$/$1$2$3/r;
$enum_decl = fix_annotations($enum_decl);
write_output("ENU3", "$enum_decl\n");
};