summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-10-17 09:27:44 +0200
committerAraq <rumpf_a@web.de>2017-10-17 09:27:44 +0200
commit7ee825a6e5979a23cb0e0323f8d8069edc3285ba (patch)
treea56f0eb35b387d8f565617d1588cc630bde12049 /lib
parent3d69c1bd0b877b36a4568860274c362c5cbae6fb (diff)
downloadNim-7ee825a6e5979a23cb0e0323f8d8069edc3285ba.tar.gz
make the Windows build green again
Diffstat (limited to 'lib')
-rw-r--r--lib/system/sysstr.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/system/sysstr.nim b/lib/system/sysstr.nim
index 43b5a0292..50a8e6baa 100644
--- a/lib/system/sysstr.nim
+++ b/lib/system/sysstr.nim
@@ -338,9 +338,10 @@ proc add*(result: var string; x: float) =
     buf[n] = '.'
     buf[n+1] = '0'
     buf[n+2] = '\0'
-  # On Windows nice numbers like '1.#INF', '-1.#INF' or '1.#NAN' are produced.
+  # On Windows nice numbers like '1.#INF', '-1.#INF' or '1.#NAN'
+  # of '-1.#IND' are produced.
   # We want to get rid of these here:
-  if buf[n-1] in {'n', 'N'}:
+  if buf[n-1] in {'n', 'N', 'D', 'd'}:
     result.add "nan"
   elif buf[n-1] == 'F':
     if buf[0] == '-':