diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-03-09 17:49:31 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-03-09 17:49:31 +0000 |
commit | 15d67fba624df2ee5befa67a0553d29b1196bb1b (patch) | |
tree | ce32c02bf761f2ef52849cc864d339b81703e60e /math.c | |
parent | 4dae731bbd067cd1cae8ecf42ede0a4ac7c16bc8 (diff) | |
download | ruby-15d67fba624df2ee5befa67a0553d29b1196bb1b.tar.gz |
* math.c (math_log, math_log10): use nan() instead of 0.0/0.0 on Cygwin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'math.c')
-rw-r--r-- | math.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -65,8 +65,8 @@ math_exp(obj, x) } #if defined __CYGWIN__ -#define log(x) ((x) < 0.0 ? 0.0 / 0.0 : log(x)) -#define log10(x) ((x) < 0.0 ? 0.0 / 0.0 : log10(x)) +#define log(x) ((x) < 0.0 ? nan() : log(x)) +#define log10(x) ((x) < 0.0 ? nan() : log10(x)) #endif static VALUE |