be_package.c: fix compiler warning
commit29e94dc065c8d85139ec16c462d835ad63f87984
authorAllan McRae <allan@archlinux.org>
Mon, 2 Jan 2012 04:31:46 +0000 (2 14:31 +1000)
committerDan McGee <dan@archlinux.org>
Mon, 2 Jan 2012 18:58:51 +0000 (2 12:58 -0600)
treea6030c94fb496fc9d47ce48773b72faf29c39c27
parenteb5cb8ec02bf31b4a5e84ea38c196dae67bf2aac
be_package.c: fix compiler warning

be_package.c: In function 'parse_descfile':
be_package.c:181:28: error: comparison between signed and unsigned
integer expressions [-Werror=sign-compare]

ptr - key + 2 is guaranteed to be > 0 so we can cast to size_t

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/be_package.c