Transaction element type is not a bitfield but a plain old enum
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 25 Feb 2010 11:34:51 +0000 (13:34 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 25 Feb 2010 11:34:51 +0000 (13:34 +0200)
lib/rpmte.h

index c3b221e..52dcaa3 100644 (file)
@@ -20,8 +20,8 @@ extern int _rpmte_debug;
  * Transaction element type.
  */
 typedef enum rpmElementType_e {
-    TR_ADDED           = (1 << 0),     /*!< Package will be installed. */
-    TR_REMOVED         = (1 << 1)      /*!< Package will be removed. */
+    TR_ADDED           = 1,    /*!< Package will be installed. */
+    TR_REMOVED         = 2,    /*!< Package will be removed. */
 } rpmElementType;
 
 /** \ingroup rpmte