summaryrefslogtreecommitdiffstats
path: root/pcilib/version.h.in
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-05-03 02:07:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-05-03 02:07:32 +0200
commitf45828699b405acf51130fbae248e6a2193247cd (patch)
treedc571db8193e86f5db4aba965640faa57458904a /pcilib/version.h.in
parent4753ea5cded2ed3fdd68d8e5b656566f6b9771ab (diff)
downloadpcitool-f45828699b405acf51130fbae248e6a2193247cd.tar.gz
pcitool-f45828699b405acf51130fbae248e6a2193247cd.tar.bz2
pcitool-f45828699b405acf51130fbae248e6a2193247cd.tar.xz
pcitool-f45828699b405acf51130fbae248e6a2193247cd.zip
Fix typos in versioning code
Diffstat (limited to 'pcilib/version.h.in')
-rw-r--r--pcilib/version.h.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/pcilib/version.h.in b/pcilib/version.h.in
index 6eb3b20..0940913 100644
--- a/pcilib/version.h.in
+++ b/pcilib/version.h.in
@@ -6,9 +6,9 @@
#define PCILIB_VERSION_MICRO ${PCILIB_VERSION_MICRO}
#define PCILIB_MAKE_VERSION(major, minor, micro) ((major<<16)|(minor<<8)|(micro))
-#define PCILIB_VERSION_GET_MAJOR(version) ((version>>16)&&0xFF)
-#define PCILIB_VERSION_GET_MINOR(version) ((version>>8)&&0xFF)
-#define PCILIB_VERSION_GET_MICRO(version) ((version)&&0xFF)
+#define PCILIB_VERSION_GET_MAJOR(version) ((version>>16)&0xFF)
+#define PCILIB_VERSION_GET_MINOR(version) ((version>>8)&0xFF)
+#define PCILIB_VERSION_GET_MICRO(version) ((version)&0xFF)
#define PCILIB_VERSION PCILIB_MAKE_VERSION(PCILIB_VERSION_MAJOR, PCILIB_VERSION_MINOR, PCILIB_VERSION_MICRO)