Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4deb20f

Browse files
committed
Fix for missing NAN.
1 parent 7fab608 commit 4deb20f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/backend/utils/adt/float.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.36 1999/01/10 17:13:06 thomas Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/float.c,v 1.37 1999/01/17 03:28:37 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -71,6 +71,10 @@
7171
#define SHRT_MIN (-32768)
7272
#endif
7373

74+
#ifndef NAN
75+
#define NAN (0.0/0.0)
76+
#endif
77+
7478
#define FORMAT 'g' /* use "g" output format as standard
7579
* format */
7680
/* not sure what the following should be, but better to make it over-sufficient */

0 commit comments

Comments
 (0)