summaryrefslogtreecommitdiff
path: root/libiberty/regex.c
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2005-07-15 01:45:25 +0000
committerBen Elliston <bje@gcc.gnu.org>2005-07-15 11:45:25 +1000
commit7c22afcba12417a2dcb10ceb358966447f07f5ef (patch)
tree427f4752aa7366e675c0bbbb41054aae50accc3e /libiberty/regex.c
parent9f0076e54791675113e8916105fee88992a7bcbb (diff)
* regex.c (TRANSLATE): Cast rhs of ternary expression to char.
From-SVN: r102050
Diffstat (limited to 'libiberty/regex.c')
-rw-r--r--libiberty/regex.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libiberty/regex.c b/libiberty/regex.c
index b7be99d25b2..951f2d10f33 100644
--- a/libiberty/regex.c
+++ b/libiberty/regex.c
@@ -2,7 +2,9 @@
version 0.12.
(Implements POSIX draft P1003.2/D11.2, except for some of the
internationalization features.)
- Copyright (C) 1993-1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+
+ Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
+ 2002, 2005 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -1918,7 +1920,7 @@ static reg_errcode_t byte_compile_range (unsigned int range_start,
? (char) translate[(unsigned char) (d)] : (d))
# else /* BYTE */
# define TRANSLATE(d) \
- (translate ? (char) translate[(unsigned char) (d)] : (d))
+ (translate ? (char) translate[(unsigned char) (d)] : (char) (d))
# endif /* WCHAR */
# endif