* shared.cc (shared_info::initialize): Use correct value for version

comparison.
* include/cygwin/version.h (CYGWIN_VERSION_MAGIC): Use all of a DWORD for magic
calculation.
This commit is contained in:
Christopher Faylor
2002-10-23 02:20:38 +00:00
parent 046a4e718e
commit 082512aea1
3 changed files with 9 additions and 2 deletions

View File

@ -230,5 +230,5 @@ details. */
cygwin_internal (CW_GETVERSIONINFO).
*/
#define CYGWIN_VERSION_MAGIC(a, b) ((unsigned) (((unsigned short) a) | (unsigned short) b))
#define CYGWIN_VERSION_MAGIC(a, b) ((unsigned) ((((unsigned short) a) << 16) | (unsigned short) b))
#define CYGWIN_VERSION_MAGIC_VERSION(a) ((unsigned) ((unsigned)a & 0xffff))