Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gcc/dist/libstdc++-v3/config/os/bsd/netbsd Fix...
details: https://anonhg.NetBSD.org/src/rev/7b17f4445487
branches: trunk
changeset: 786450:7b17f4445487
user: joerg <joerg%NetBSD.org@localhost>
date: Sun Apr 28 19:46:01 2013 +0000
description:
Fix value ranges.
diffstat:
external/gpl3/gcc/dist/libstdc++-v3/config/os/bsd/netbsd/ctype_inline.h | 2 +-
external/gpl3/gcc/dist/libstdc++-v3/config/os/bsd/netbsd/ctype_noninline.h | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (41 lines):
diff -r d2edde562c94 -r 7b17f4445487 external/gpl3/gcc/dist/libstdc++-v3/config/os/bsd/netbsd/ctype_inline.h
--- a/external/gpl3/gcc/dist/libstdc++-v3/config/os/bsd/netbsd/ctype_inline.h Sun Apr 28 19:41:25 2013 +0000
+++ b/external/gpl3/gcc/dist/libstdc++-v3/config/os/bsd/netbsd/ctype_inline.h Sun Apr 28 19:46:01 2013 +0000
@@ -46,7 +46,7 @@
is(const char* __low, const char* __high, mask* __vec) const
{
while (__low < __high)
- *__vec++ = _M_table[*__low++];
+ *__vec++ = _M_table[(unsigned char)*__low++];
return __high;
}
diff -r d2edde562c94 -r 7b17f4445487 external/gpl3/gcc/dist/libstdc++-v3/config/os/bsd/netbsd/ctype_noninline.h
--- a/external/gpl3/gcc/dist/libstdc++-v3/config/os/bsd/netbsd/ctype_noninline.h Sun Apr 28 19:41:25 2013 +0000
+++ b/external/gpl3/gcc/dist/libstdc++-v3/config/os/bsd/netbsd/ctype_noninline.h Sun Apr 28 19:46:01 2013 +0000
@@ -71,7 +71,7 @@
{
while (__low < __high)
{
- *__low = ::toupper((int) *__low);
+ *__low = ::toupper((int)(unsigned char) *__low);
++__low;
}
return __high;
@@ -79,14 +79,14 @@
char
ctype<char>::do_tolower(char __c) const
- { return ::tolower((int) __c); }
+ { return ::tolower((int)(unsigned char) __c); }
const char*
ctype<char>::do_tolower(char* __low, const char* __high) const
{
while (__low < __high)
{
- *__low = ::tolower((int) *__low);
+ *__low = ::tolower((int)(unsigned char) *__low);
++__low;
}
return __high;
Home |
Main Index |
Thread Index |
Old Index