]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Arithmetic is hard.
authorRoland McGrath <roland@redhat.com>
Fri, 17 Apr 2009 20:24:01 +0000 (13:24 -0700)
committerRoland McGrath <roland@redhat.com>
Fri, 17 Apr 2009 20:24:01 +0000 (13:24 -0700)
config/version.h.in

index 3de32a34aa36adb43f5f02e533b380b0e090384a..f678c6963006d5515e9dfb1fc52c0b2fdfacfac4 100644 (file)
@@ -53,6 +53,6 @@
 #define _ELFUTILS_VERSION      @eu_version@
 
 #define _ELFUTILS_PREREQ(major, minor) \
-  (_ELFUTILS_VERSION >= ((major) * 1000000 + (minor) * 1000))
+  ((_ELFUTILS_VERSION + 999) / 1000 >= ((major) * 1000 + (minor)))
 
 #endif /* elfutils/version.h */