summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/binutils/rcparse.y
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.25/binutils/rcparse.y')
-rw-r--r--binutils-2.25/binutils/rcparse.y11
1 files changed, 5 insertions, 6 deletions
diff --git a/binutils-2.25/binutils/rcparse.y b/binutils-2.25/binutils/rcparse.y
index f4101d59..2d179097 100644
--- a/binutils-2.25/binutils/rcparse.y
+++ b/binutils-2.25/binutils/rcparse.y
@@ -1,6 +1,5 @@
%{ /* rcparse.y -- parser for Windows rc files
- Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2007, 2008,
- 2011 Free Software Foundation, Inc.
+ Copyright (C) 1997-2014 Free Software Foundation, Inc.
Written by Ian Lance Taylor, Cygnus Support.
Extended by Kai Tietz, Onevision.
@@ -1426,15 +1425,15 @@ fixedverinfo:
| fixedverinfo FILEVERSION numexpr optcnumexpr optcnumexpr
optcnumexpr
{
- $1->file_version_ms = ($3 << 16) | $4;
- $1->file_version_ls = ($5 << 16) | $6;
+ $1->file_version_ms = ($3 << 16) | ($4 & 0xffff);
+ $1->file_version_ls = ($5 << 16) | ($6 & 0xffff);
$$ = $1;
}
| fixedverinfo PRODUCTVERSION numexpr optcnumexpr optcnumexpr
optcnumexpr
{
- $1->product_version_ms = ($3 << 16) | $4;
- $1->product_version_ls = ($5 << 16) | $6;
+ $1->product_version_ms = ($3 << 16) | ($4 & 0xffff);
+ $1->product_version_ls = ($5 << 16) | ($6 & 0xffff);
$$ = $1;
}
| fixedverinfo FILEFLAGSMASK numexpr