Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Don't shift negative values as this is undefined.
Bryan Drewery committed 10 years ago
commit 5f152a041d02cbc454449889d4eb6c5a56bc031b
parent f07171a
1 file changed +8 -8
modified src/pkgcli.h
@@ -235,16 +235,16 @@ void usage_config(void);
#define INFO_ALL	(((INFO_LASTFIELD) << 1) - 1)

/* Identifying tags */
-
#define INFO_TAG_NAME		(1LL<<60)
-
#define INFO_TAG_ORIGIN		(1LL<<61)
-
#define INFO_TAG_NAMEVER	(1LL<<62)
+
#define INFO_TAG_NAME		(1LL<<32)
+
#define INFO_TAG_ORIGIN		(1LL<<33)
+
#define INFO_TAG_NAMEVER	(1LL<<34)

/* Output YAML format */
-
#define INFO_RAW		(-1LL<<63)
-
#define INFO_RAW_YAML		(-1LL<<62)
-
#define INFO_RAW_JSON		(-1LL<<61)
-
#define INFO_RAW_JSON_COMPACT	(-1LL<<60)
-
#define INFO_RAW_UCL		(-1LL<<59)
+
#define INFO_RAW		(1LL<<35)
+
#define INFO_RAW_YAML		(1LL<<36)
+
#define INFO_RAW_JSON		(1LL<<37)
+
#define INFO_RAW_JSON_COMPACT	(1LL<<38)
+
#define INFO_RAW_UCL		(1LL<<39)

/* Everything in the 'full' package output */
#define INFO_FULL	(INFO_NAME|INFO_VERSION|INFO_INSTALLED|INFO_ORIGIN| \