header.h: shut up -Wextra warning

header.h: In function 'headerFreeData':
header.h:705:11: error: comparison between signed and unsigned integer expressions
This commit is contained in:
Alexey Tourbin 2011-01-03 09:38:50 +03:00
parent 42db4e0a9d
commit cf36274cb9

View File

@ -702,7 +702,7 @@ void * headerFreeData( /*@only@*/ /*@null@*/ const void * data, rpmTagType type)
{
if (data) {
/*@-branchstate@*/
if (type == -1 ||
if (type == (rpmTagType) -1 ||
type == RPM_STRING_ARRAY_TYPE ||
type == RPM_I18NSTRING_TYPE ||
type == RPM_BIN_TYPE)