diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-11-17 12:44:57 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-11-17 12:44:57 +0200 |
commit | 74ed5372f681a31987ba931d72ed5d8ae96f52d0 (patch) | |
tree | 25bef3d873d29ffe8035a4a041d6ad97f1810e6f /lib/formats.c | |
parent | 05a3d00162fe343002e378e42f6458139093ba52 (diff) | |
download | rpm-74ed5372f681a31987ba931d72ed5d8ae96f52d0.tar.gz rpm-74ed5372f681a31987ba931d72ed5d8ae96f52d0.tar.bz2 rpm-74ed5372f681a31987ba931d72ed5d8ae96f52d0.zip |
Make depflagsFormat() accept any numeric type
Diffstat (limited to 'lib/formats.c')
-rw-r--r-- | lib/formats.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/formats.c b/lib/formats.c index 4b93b0600..c51a54165 100644 --- a/lib/formats.c +++ b/lib/formats.c @@ -533,14 +533,12 @@ static char * pgpsigFormat(rpmtd td, char * formatPrefix) static char * depflagsFormat(rpmtd td, char * formatPrefix) { char * val = NULL; - char buf[10]; - rpmsenseFlags anint; - if (rpmtdType(td) != RPM_INT32_TYPE) { + if (rpmtdClass(td) != RPM_NUMERIC_CLASS) { val = xstrdup(_("(not a number)")); } else { - rpm_flag_t *rf = rpmtdGetUint32(td); - anint = *rf; + uint64_t anint = rpmtdGetNumber(td); + char buf[10]; buf[0] = '\0'; if (anint & RPMSENSE_LESS) |