# Math.c typo: define(ERANGE)

**URL:** <https://www.ruby-forum.com/t/math-c-typo-define-erange/116555>\
**Category:** Development\
**Created:** [October 7, 2007, 8:52am UTC](https://www.ruby-forum.com/t/math-c-typo-define-erange/116555 "2007-10-07T08:52:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NARUSES\_Yui](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/258eb7/32.png) [@NARUSES\_Yui](https://www.ruby-forum.com/u/NARUSES_Yui)\
**Post date:** [October 7, 2007, 8:52am UTC](https://www.ruby-forum.com/t/math-c-typo-define-erange/116555/1 "2007-10-07T08:52:52Z")

</div>

e$B@.@%$G$9!#e(B

gcc e$B$Ge(B trunk e$B$r%3%s%Q%$%k$G$-$J$$$N$G!":#N.9T$i$7$$e(B pcc  
e$B$G%3%s%Q%$%k$7$he(B  
e$B$&$H$7$?$i!"$3$s$J$N$r8+$D$1$^$7$?!#e(B

# Index: math.c

— math.c (e$B%j%S%8%g%se(B 13646)  
+++ math.c (e$B:n6H%3%T!\<e(B)  
@@ -32,7 +32,7 @@  
if (isnan(x)) {  
#if defined(EDOM)  
errno = EDOM;  
-#elif define(ERANGE)  
+#elif defined(ERANGE)  
errno = ERANGE;  
#endif  
continue;
