Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
b3fcc816
Commit
b3fcc816
authored
Apr 01, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing casts to unsigned char in recently-added isspace() calls.
parent
7df21fe8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
src/backend/utils/adt/float.c
src/backend/utils/adt/float.c
+5
-5
src/backend/utils/adt/int8.c
src/backend/utils/adt/int8.c
+2
-2
src/backend/utils/adt/numutils.c
src/backend/utils/adt/numutils.c
+2
-2
No files found.
src/backend/utils/adt/float.c
View file @
b3fcc816
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.10
1 2004/03/15 03:29:22
tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/float.c,v 1.10
2 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 */
...
...
src/backend/utils/adt/int8.c
View file @
b3fcc816
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/int8.c,v 1.5
2 2004/03/11 02:11:13 neilc
Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/int8.c,v 1.5
3 2004/04/01 22:51:31 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -114,7 +114,7 @@ scanint8(const char *str, bool errorOK, int64 *result)
}
/* allow trailing whitespace, but not other trailing chars */
while
(
*
ptr
!=
'\0'
&&
isspace
(
*
ptr
))
while
(
*
ptr
!=
'\0'
&&
isspace
(
(
unsigned
char
)
*
ptr
))
ptr
++
;
if
(
*
ptr
!=
'\0'
)
...
...
src/backend/utils/adt/numutils.c
View file @
b3fcc816
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/numutils.c,v 1.6
2 2004/03/11 02:11:13 neilc
Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/numutils.c,v 1.6
3 2004/04/01 22:51:31 tgl
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -88,7 +88,7 @@ pg_atoi(char *s, int size, int c)
* Skip any trailing whitespace; if anything but whitespace
* remains before the terminating character, bail out
*/
while
(
*
badp
!=
c
&&
isspace
(
*
badp
))
while
(
*
badp
!=
c
&&
isspace
(
(
unsigned
char
)
*
badp
))
badp
++
;
if
(
*
badp
!=
c
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment