-/* $OpenBSD: printf.c,v 1.24 2015/10/09 01:37:08 deraadt Exp $ */
+/* $OpenBSD: printf.c,v 1.25 2016/07/27 01:52:03 tedu Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
return(0L);
if (**gargv == '\"' || **gargv == '\'')
- return (long) *((*gargv++)+1);
+ return (unsigned char) *((*gargv++)+1);
errno = 0;
val = strtol (*gargv, &ep, 0);
return(0UL);
if (**gargv == '\"' || **gargv == '\'')
- return (unsigned long) *((*gargv++)+1);
+ return (unsigned char) *((*gargv++)+1);
errno = 0;
val = strtoul (*gargv, &ep, 0);
return(0.0);
if (**gargv == '\"' || **gargv == '\'')
- return (double) *((*gargv++)+1);
+ return (unsigned char) *((*gargv++)+1);
errno = 0;
val = strtod (*gargv, &ep);