aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/float.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-04-01 22:51:31 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-04-01 22:51:31 +0000
commitb3fcc816ae18420263dc831d436b4e29b506989a (patch)
treecc897d3c022fd551bb4a45cd06954ef671a7b650 /src/backend/utils/adt/float.c
parent7df21fe8a833aca83dc4400ba2fafdea55453dc7 (diff)
downloadpostgresql-b3fcc816ae18420263dc831d436b4e29b506989a.tar.gz
postgresql-b3fcc816ae18420263dc831d436b4e29b506989a.zip
Add missing casts to unsigned char in recently-added isspace() calls.
Diffstat (limited to 'src/backend/utils/adt/float.c')
-rw-r--r--src/backend/utils/adt/float.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/backend/utils/adt/float.c b/src/backend/utils/adt/float.c
index bdedd83e6e3..d56cf04bf36 100644
--- a/src/backend/utils/adt/float.c
+++ b/src/backend/utils/adt/float.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.101 2004/03/15 03:29:22 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.102 2004/04/01 22:51:31 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -276,7 +276,7 @@ float4in(PG_FUNCTION_ARGS)
}
/* skip leading whitespace */
- while (*num != '\0' && isspace(*num))
+ while (*num != '\0' && isspace((unsigned char) *num))
num++;
errno = 0;
@@ -319,7 +319,7 @@ float4in(PG_FUNCTION_ARGS)
}
/* skip trailing whitespace */
- while (*endptr != '\0' && isspace(*endptr))
+ while (*endptr != '\0' && isspace((unsigned char) *endptr))
endptr++;
/* if there is any junk left at the end of the string, bail out */
@@ -441,7 +441,7 @@ float8in(PG_FUNCTION_ARGS)
}
/* skip leading whitespace */
- while (*num != '\0' && isspace(*num))
+ while (*num != '\0' && isspace((unsigned char) *num))
num++;
errno = 0;
@@ -484,7 +484,7 @@ float8in(PG_FUNCTION_ARGS)
}
/* skip trailing whitespace */
- while (*endptr != '\0' && isspace(*endptr))
+ while (*endptr != '\0' && isspace((unsigned char) *endptr))
endptr++;
/* if there is any junk left at the end of the string, bail out */