aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/int8.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2000-06-14 18:18:01 +0000
committerPeter Eisentraut <peter_e@gmx.net>2000-06-14 18:18:01 +0000
commit44d1abebb48d678ac1b75f6556c68c9634cb235b (patch)
treefe1efd24fb2fa1565bb69533583bda1e94f13a08 /src/backend/utils/adt/int8.c
parent4786a808d9f58746ebb77bf78a6ae2d0854cd6b9 (diff)
downloadpostgresql-44d1abebb48d678ac1b75f6556c68c9634cb235b.tar.gz
postgresql-44d1abebb48d678ac1b75f6556c68c9634cb235b.zip
Big warnings cleanup for Solaris/GCC. Down to about 40 now, but
we'll get there one day. Use `cat' to create aclocal.m4, not `aclocal'. Some people don't have automake installed. Only run the autoconf rule in the top-level GNUmakefile if the invoker specified `make configure', don't run it automatically because of CVS timestamp skew.
Diffstat (limited to 'src/backend/utils/adt/int8.c')
-rw-r--r--src/backend/utils/adt/int8.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/utils/adt/int8.c b/src/backend/utils/adt/int8.c
index 774e9aba89c..ea29ffaff55 100644
--- a/src/backend/utils/adt/int8.c
+++ b/src/backend/utils/adt/int8.c
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/int8.c,v 1.20 2000/06/13 07:35:07 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/int8.c,v 1.21 2000/06/14 18:17:44 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -70,15 +70,15 @@ int8in(PG_FUNCTION_ARGS)
* Do our own scan, rather than relying on sscanf which might be
* broken for long long.
*/
- while (*ptr && isspace(*ptr)) /* skip leading spaces */
+ while (*ptr && isspace((int) *ptr)) /* skip leading spaces */
ptr++;
if (*ptr == '-') /* handle sign */
sign = -1, ptr++;
else if (*ptr == '+')
ptr++;
- if (!isdigit(*ptr)) /* require at least one digit */
+ if (!isdigit((int) *ptr)) /* require at least one digit */
elog(ERROR, "Bad int8 external representation \"%s\"", str);
- while (*ptr && isdigit(*ptr)) /* process digits */
+ while (*ptr && isdigit((int) *ptr)) /* process digits */
{
int64 newtmp = tmp * 10 + (*ptr++ - '0');