mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* numeric.c (fix_mul): typo again. patch from Tadashi Saito
<shiba at mail2.accsnet.ne.jp>. fixed: [ruby-core:08893] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
803591e900
commit
4e259f9094
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Sep 20 22:41:45 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* numeric.c (fix_mul): typo again. patch from Tadashi Saito
|
||||
<shiba at mail2.accsnet.ne.jp>. fixed: [ruby-core:08893]
|
||||
|
||||
Wed Sep 20 09:49:40 2006 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* {bcc32,win32,wince}/Makefile.sub (INSTALLED_LIST): need to define
|
||||
|
|
|
@ -1989,7 +1989,7 @@ fix_mul(VALUE x, VALUE y)
|
|||
if (FIXABLE(d)) return LONG2FIX(d);
|
||||
return rb_ll2inum(d);
|
||||
#else
|
||||
# define SQRT_LONG_MAX ((SIZEOF_VALUE)1<<((SIZEOF_VALUE*CHAR_BIT-1)/2))
|
||||
# define SQRT_LONG_MAX ((SIGNED_VALUE)1<<((SIZEOF_VALUE*CHAR_BIT-1)/2))
|
||||
/*tests if N*N would overflow*/
|
||||
# define FIT_SQRT_LONG(n) (((n)<SQRT_LONG_MAX)&&((n)>=-SQRT_LONG_MAX))
|
||||
if (FIT_SQRT_LONG(a) && FIT_SQRT_LONG(b))
|
||||
|
|
Loading…
Reference in a new issue