summaryrefslogtreecommitdiff
path: root/libc/stdio
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-03-28 09:44:53 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-03-28 09:44:53 +0200
commit238f52fdab1f18577c7aaa749f4f24118403926f (patch)
tree0d52733dbea3bd95dc6c97acf9cd3c0d49f8e0b9 /libc/stdio
parent03a008e27f61ee805ec1cc914fbe60f6eb34887c (diff)
stdio: Fix char signedness in _load_inttype()
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/stdio')
-rw-r--r--libc/stdio/_load_inttype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdio/_load_inttype.c b/libc/stdio/_load_inttype.c
index 057f5f256..dabb6afa6 100644
--- a/libc/stdio/_load_inttype.c
+++ b/libc/stdio/_load_inttype.c
@@ -57,7 +57,7 @@ uintmax_t _load_inttype(int desttype, register const void *src, int uflag)
{
int x;
x = *((int *) src);
- if (desttype == __PA_FLAG_CHAR) x = (char) x;
+ if (desttype == __PA_FLAG_CHAR) x = (signed char) x;
#if SHRT_MAX != INT_MAX
if (desttype == PA_FLAG_SHORT) x = (short int) x;
#endif