about summary refs log tree commit diff
path: root/wcsmbs/wctob.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-07-26 16:48:22 +0000
committerUlrich Drepper <drepper@redhat.com>1999-07-26 16:48:22 +0000
commiteea35053ac65bbe7686dd5e2f3d1afe938311ff9 (patch)
treefd44d95d3af93989d17c714a850ba552a3f14aaf /wcsmbs/wctob.c
parentb8a423c2db7442c8e082cd710f3ce052009a12b1 (diff)
downloadglibc-eea35053ac65bbe7686dd5e2f3d1afe938311ff9.tar.gz
glibc-eea35053ac65bbe7686dd5e2f3d1afe938311ff9.tar.xz
glibc-eea35053ac65bbe7686dd5e2f3d1afe938311ff9.zip
Update.
	* wcsmbs/wctob.c: Avoid sign extension when returning character.
	Reported by Bruno Haible <haible@ilog.fr>.
Diffstat (limited to 'wcsmbs/wctob.c')
-rw-r--r--wcsmbs/wctob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wcsmbs/wctob.c b/wcsmbs/wctob.c
index 565cbead4c..97a36f8d03 100644
--- a/wcsmbs/wctob.c
+++ b/wcsmbs/wctob.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1996.
 
@@ -62,5 +62,5 @@ wctob (c)
       || data.__outbuf != (unsigned char *) (buf + 1))
     return EOF;
 
-  return buf[0];
+  return (unsigned char) buf[0];
 }