aboutsummaryrefslogtreecommitdiff
path: root/binutils/resrc.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2001-07-17 01:19:19 +0000
committerDJ Delorie <dj@redhat.com>2001-07-17 01:19:19 +0000
commit95fd336c5c8f490cddff7f13a876bb062eba19d6 (patch)
tree3dc5f326f1eb4ae5ac3d3ec59ae80e8cdbfdbe39 /binutils/resrc.c
parent5b5d0a97846a6ff54a373f23431ba0390d78379a (diff)
downloadgdb-95fd336c5c8f490cddff7f13a876bb062eba19d6.zip
gdb-95fd336c5c8f490cddff7f13a876bb062eba19d6.tar.gz
gdb-95fd336c5c8f490cddff7f13a876bb062eba19d6.tar.bz2
* rcparse.y (styles): use SUBLANG_SHIFT instead of 8 (or the more
correct 10). * resrc.c (write_rc_resource): Likewise. * windres.h (SUBLANG_SHIFT): Define - as 10.
Diffstat (limited to 'binutils/resrc.c')
-rw-r--r--binutils/resrc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/binutils/resrc.c b/binutils/resrc.c
index fca874a..a29a664 100644
--- a/binutils/resrc.c
+++ b/binutils/resrc.c
@@ -1889,8 +1889,8 @@ write_rc_resource (e, type, name, res, language)
if (res->res_info.language != 0 && res->res_info.language != *language)
fprintf (e, "%sLANGUAGE %d, %d\n",
modifiers ? "// " : "",
- res->res_info.language & 0xff,
- (res->res_info.language >> 8) & 0xff);
+ res->res_info.language & ((1<<SUBLANG_SHIFT)-1),
+ (res->res_info.language >> SUBLANG_SHIFT) & 0xff);
if (res->res_info.characteristics != 0)
fprintf (e, "%sCHARACTERISTICS %lu\n",
modifiers ? "// " : "",