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
d8ae7ffb
Commit
d8ae7ffb
authored
Jan 01, 1999
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for no platform NAN.
parent
da361ee2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
7 deletions
+13
-7
src/backend/utils/adt/inet_net_ntop.c
src/backend/utils/adt/inet_net_ntop.c
+1
-2
src/backend/utils/adt/network.c
src/backend/utils/adt/network.c
+2
-3
src/backend/utils/adt/numeric.c
src/backend/utils/adt/numeric.c
+10
-2
No files found.
src/backend/utils/adt/inet_net_ntop.c
View file @
d8ae7ffb
...
...
@@ -16,7 +16,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
static
const
char
rcsid
[]
=
"$Id: inet_net_ntop.c,v 1.
3 1998/10/22 13:16:25
momjian Exp $"
;
static
const
char
rcsid
[]
=
"$Id: inet_net_ntop.c,v 1.
4 1999/01/01 04:17:13
momjian Exp $"
;
#endif
...
...
@@ -189,7 +189,6 @@ inet_net_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size)
char
*
odst
=
dst
;
char
*
t
;
size_t
len
=
4
;
u_int
m
;
int
b
,
tb
;
if
(
bits
<
0
||
bits
>
32
)
...
...
src/backend/utils/adt/network.c
View file @
d8ae7ffb
...
...
@@ -3,7 +3,7 @@
* is for IP V4 CIDR notation, but prepared for V6: just
* add the necessary bits where the comments indicate.
*
* $Id: network.c,v 1.
4 1998/10/29 16:13:07 tgl
Exp $
* $Id: network.c,v 1.
5 1999/01/01 04:17:13 momjian
Exp $
* Jon Postel RIP 16 Oct 1998
*/
...
...
@@ -389,8 +389,7 @@ network_network(inet *ip)
{
text
*
ret
;
int
len
;
char
*
ptr
,
tmp
[
sizeof
(
"255.255.255.255/32"
)];
char
tmp
[
sizeof
(
"255.255.255.255/32"
)];
if
(
ip_family
(
ip
)
==
AF_INET
)
{
...
...
src/backend/utils/adt/numeric.c
View file @
d8ae7ffb
...
...
@@ -5,7 +5,7 @@
*
* 1998 Jan Wieck
*
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numeric.c,v 1.
2 1998/12/30 20:46:05 wieck
Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/numeric.c,v 1.
3 1999/01/01 04:17:13 momjian
Exp $
*
* ----------
*/
...
...
@@ -16,7 +16,7 @@
#include <ctype.h>
#include <float.h>
#include <math.h>
#include <nan.h>
/*#include <nan.h> BSD/OS does not have this */
#include <errno.h>
#include <sys/types.h>
...
...
@@ -1723,7 +1723,11 @@ numeric_float8(Numeric num)
if
(
NUMERIC_IS_NAN
(
num
))
{
result
=
(
float64
)
palloc
(
sizeof
(
float64data
));
#ifdef NAN
*
result
=
NAN
;
#else
*
result
=
num
;
#endif
return
result
;
}
...
...
@@ -1773,7 +1777,11 @@ numeric_float4(Numeric num)
if
(
NUMERIC_IS_NAN
(
num
))
{
result
=
(
float32
)
palloc
(
sizeof
(
float32data
));
#ifdef NAN
*
result
=
NAN
;
#else
*
result
=
num
;
#endif
return
result
;
}
...
...
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