summaryrefslogtreecommitdiff
path: root/src/Converters.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-05-17 20:39:24 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-05-18 06:42:34 -0400
commit4264ac5f8bc959844ae8ac623d4db491fc691fa5 (patch)
treee56d5185846b9e158e0d2aa18922157803eb0528 /src/Converters.c
parent41ba4dec60f7d9495c8d45c068d5c3d17e035e1e (diff)
trim obsolete ifdef for ISC, and correct nonstandard "NaNS" to "NaN"
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/Converters.c')
-rw-r--r--src/Converters.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Converters.c b/src/Converters.c
index bf91f1f..fbfa076 100644
--- a/src/Converters.c
+++ b/src/Converters.c
@@ -810,11 +810,8 @@ Boolean XtCvtStringToFloat(
int ret;
float f, nan;
-#ifndef ISC /* On ISC this generates a core dump :-( at least with gs */
- /* depending on the system this may or may not do anything useful */
- (void) sscanf ("NaNS", "%g",
+ (void) sscanf ("NaN", "%g",
toVal->addr != NULL ? (float*) toVal->addr : &nan);
-#endif
if (*num_args != 0)
XtAppWarningMsg(XtDisplayToApplicationContext(dpy),