Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Feb 8, 2012
  1. @nahi

    Backport r34482 from trunk. See #5353

    nahi authored
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@34486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 28, 2011
  1. @shyouhei

    -This line, and those below, will be ignored--

    shyouhei authored
    M    ruby_1_8_7/ChangeLog
    M    ruby_1_8_7/inits.c
    M    ruby_1_8_7/version.h
    M    ruby_1_8_7/string.c
    M    ruby_1_8_7/st.c
    M    ruby_1_8_7/test/ruby/test_string.rb
    M    ruby_1_8_7/random.c
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@34151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 10, 2011
  1. @shyouhei

    merge revision(s) 23730:

    shyouhei authored
    ?\012
    	* numeric.c (flo_cmp): Infinity is greater than any bignum
    	  number.  [ruby-dev:38672]
    
    	* bignum.c (rb_big_cmp): ditto.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@34000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 23, 2011
  1. @nahi

    backported r26281 from ruby_1_8

    nahi authored
    * lib/webrick/accesslog.rb (WEBrick::AccessLog.format): log parameter
      embedding did not work. See #4913.
    
    * test/webrick/test_accesslog.rb: Add for test it.
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@32209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 16, 2011
  1. @nahi

    backport r32050 by akr

    nahi authored
    * lib/securerandom.rb (SecureRandom.random_bytes): modify PRNG state
      to prevent random number sequence repeatation at forked
      child process which has same pid.
      reported by Eric Wong.  [ruby-core:35765]
    
    backport r32124 by nahi
    
    * test/test_securerandom.rb: Add testcase.  This testcase does NOT aim
      to test cryptographically strongness and randomness.  It includes
      the test for PID recycle issue of OpenSSL described in #4579 but
      it's disabled by default.
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@32128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 20, 2011
  1. @shyouhei

    merge revision(s) 31578:

    shyouhei authored
    ?\012
    * lib/uri/generic.rb (#route_from_path): Fix a bug where
      URI('http://h/b/').route_to('http://h/b') wrongly returned './'
      (should be '../b'). [Bug #4476]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@31666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @shyouhei

    merge revision(s) 31302:

    shyouhei authored
    ?\012
    	backported r31286 from trunk
    
    	* numeric.c (ruby_float_step): wrong loop condition.
    	  fixes [ruby-core:35753], reported by Joey Zhou.
    
    	* test/ruby/test_range.rb (TestRange#test_step_ruby_core_35753):
    	  test above change.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@31302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@31663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  3. @shyouhei

    merge revision(s) 30274:30279:

    shyouhei authored
    ?\012
    	* Backported the fix at
    	  Mon Oct  4 09:30:42 2010  NARUSE, Yui  <naruse@ruby-lang.org>
    
    	* ext/openssl/lib/openssl/bn.rb (Integer#to_bn): OpenSSL::BN.new
    	  accepts only Strings, so call Integer#to_s(16).
    	  16 is for an optimization. [ruby-dev:42336]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@30275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    ?\012
    	Make test-all run. require_relative is from 1.9.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@30278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    ?\012
    	* Backported the fix at
    	  Mon Sep 13 09:23:58 2010  NARUSE, Yui  <naruse@ruby-lang.org>
    
    	* ext/openssl/ossl_bn.c (ossl_bn_is_prime): fix comparison
    	  with rb_scan_args. Before this fix, OpenSSL::BN#prime?
    	  is fully broken.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@30279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    ?\012
    Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
    
    create mode 100644 test/openssl/test_bn.rb
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@31657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Feb 18, 2011
  1. @shyouhei

    merge revision(s) 30903:

    shyouhei authored
    	* test/ruby/test_exception.rb (TestException::test_to_s_taintness_propagation):
    	  Test for below.
    	* error.c (exc_to_s): untainted strings can be tainted via
    	  Exception#to_s, which enables attackers to overwrite sane strings.
    	  Reported by: Yusuke Endoh <mame at tsg.ne.jp>.
    	* error.c (name_err_to_s): ditto.
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@30911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 23, 2010
  1. @shyouhei

    merge revision(s) 30302:

    shyouhei authored
    	* lib/resolv.rb (Resolv::IPv4::Regex): make it only accept 0 to 255.
    	  [ruby-core:29501]
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@30303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 22, 2010
  1. @shyouhei

    Mon, 23 Aug 2010 03:06:30 +0000 nahi <nahi@b2dd03c8-39d4-4d8f-98ff-82…

    shyouhei authored
    …3fe69b080e>
    
     merge revision(s) 29071:
     ?\012
     	* ext/openssl/ossl_asn1.c (obj_to_asn1bool): fixed ASN1::Boolean
     	  encoding issue for OpenSSL 1.0.0 compatibility.
     	  ASN1::Boolean.new(false).to_der wrongly generated "\1\1\377" which
     	  means 'true'.
    
    	  ASN1_TYPE_set of OpenSSL <= 0.9.8 treats value 0x100 as 'false' but
    	  OpenSSL >= 1.0.0 treats it as 'true'.  ruby-ossl was using 0x100 for
    	  'false' for backward compatibility.  Just use 0x0 for the case
    	  OpenSSL >= OpenSSL 0.9.7.
    
    	* test/openssl/test_asn1.rb: test added.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@29071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
    
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@29861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @shyouhei

    Thu, 29 Jul 2010 23:33:21 +0000 nobu <nobu@b2dd03c8-39d4-4d8f-98ff-82…

    shyouhei authored
    …3fe69b080e>
    
     merge revision(s) 28794:28796:
     ?\012
     	* file.c (file_expand_path): should check if could find user.
     	  [ruby-core:31538]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
    ?\012
    	* file.c (file_expand_path): home directory must be absolute.
    	  [ruby-core:31537]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
    
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@29859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  3. @shyouhei

    Thu, 8 Jul 2010 04:44:58 +0000 nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823…

    shyouhei authored
    …fe69b080e>
    
     merge revision(s) 28575,28620:28632:
     ?\012
     	* test/openssl/test_config.c: added tests for all Config methods.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
    ?\012
    	* ext/openssl/ossl_config.c (ossl_config_copy): wrongly updating the
    	  given object with uninitialized CONF data.  now
    	  OpenSSL::Config#clone works as expected; cloning the config instead of
    	  SEGV or empty definition.
    
    	* test/openssl/test_config.rb: added tests for Config#clone.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
    ?\012
    	* ext/openssl/ossl_config.c, ext/openssl/lib/openssl/config.rb,
    	  ext/openssl/lib/openssl.rb: reimplement OpenSSL::Config in Ruby. Now
    	  it should work on windows.
    
    	* test/openssl/test_config.rb: added tests for OpenSSL::Config#dup.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@28632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    Signed-off-by: URABE, Shyouhei <shyouhei@ruby-lang.org>
    
     create mode 100644 ext/openssl/lib/openssl/config.rb
     create mode 100644 test/openssl/test_config.rb
    
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@29856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 23, 2010
  1. @shyouhei

    merge revision(s) 28387:

    shyouhei authored
    	* test/optparse/test_summary.rb: fixed superclass so that it run
    	  solely.
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@28407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @shyouhei

    merge revision(s) 25230:25229:

    shyouhei authored
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@28406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 21, 2010
  1. @shyouhei

    merge revision(s) 26836:26859,26861,27921:

    shyouhei authored
    	* ext/openssl/ossl_ssl_session.c
    	  (ossl_ssl_session_{get,set}_time{,out}): fixed a bug introduced by
    	  backporting. (see [ruby-dev:40573])  use long in according to
    	  OpenSSL API. (SSL_SESSION_{get,set}_time{,out})
    	* ext/openssl/ossl_x509name.c: added X509::Name#hash_old as a wrapper
    	  for X509_NAME_hash_old in OpenSSL 1.0.0.
    	* test/openssl/test_x509name.rb (test_hash): make test pass with
    	  OpenSSL 1.0.0.
    	* test/openssl/test_x509*: make tests pass with OpenSSL 1.0.0b5.
    	  * PKey::PKey#verify raises an exception when a given PKey does not
    	    match with signature.
    	  * PKey::DSA#sign accepts SHA1, SHA256 other than DSS1.
    	* backport the commit from trunk:
    	  Sun Feb 28 11:49:35 2010  NARUSE, Yui  <naruse@ruby-lang.org>
    	* openssl/ossl.c (OSSL_IMPL_SK2ARY): for OpenSSL 1.0.
    	  patched by Jeroen van Meeuwen at [ruby-core:25210]
    	  fixed by Nobuyoshi Nakada [ruby-core:25238],
    	  Hongli Lai [ruby-core:27417],
    	  and Motohiro KOSAKI [ruby-core:28063]
    	* ext/openssl/ossl_ssl.c (ossl_ssl_method_tab),
    	  (ossl_ssl_cipher_to_ary): constified.
    	* ext/openssl/ossl_pkcs7.c (pkcs7_get_certs, pkcs7_get_crls):
    	  split pkcs7_get_certs_or_crls.
    	* test/openssl/test_ec.rb: added test_dsa_sign_asn1_FIPS186_3. dgst is
    	  truncated with ec_key.group.order.size after openssl 0.9.8m for
    	  FIPS 186-3 compliance.
    	  WARNING: ruby-openssl aims to wrap an OpenSSL so when you're using
    	  openssl 0.9.8l or earlier version, EC.dsa_sign_asn1 raises
    	  OpenSSL::PKey::ECError as before and EC.dsa_verify_asn1 just returns
    	  false when you pass dgst longer than expected (no truncation
    	  performed).
    	* ext/openssl/ossl_pkey_ec.c: rdoc typo fixed.
    	* ext/openssl/ossl_config.c: defined own IMPLEMENT_LHASH_DOALL_ARG_FN_098
    	  macro according to IMPLEMENT_LHASH_DOALL_ARG_FN in OpenSSL 0.9.8m.
    	  OpenSSL 1.0.0beta5 has a slightly different definiton so it could
    	  be a temporal workaround for 0.9.8 and 1.0.0 dual support.
    	* ext/openssl/ossl_pkcs5.c (ossl_pkcs5_pbkdf2_hmac): follows function
    	  definition in OpenSSL 1.0.0beta5. PKCS5_PBKDF2_HMAC is from 1.0.0
    	  (0.9.8 only has PKCS5_PBKDF2_HMAC_SHA1)
    	* ext/openssl/ossl_ssl_session.c (ossl_ssl_session_eq): do not use
    	  SSL_SESSION_cmp and implement equality func by ousrself.  See the
    	  comment.
    	* ext/openssl/extconf.rb: check some functions added at OpenSSL 1.0.0.
    	* ext/openssl/ossl_engine.c (ossl_engine_s_load): use engines which
    	  exists.
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@28367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 16, 2010
  1. @shyouhei

    merge revision(s) 26344,27367:

    shyouhei authored
    	* lib/net/http.rb (Net::HTTPHeader#{content_range,range_length}):
    	  use inclusive range same as the header representation.
    	* test/webrick/utils.rb (TestWEBrick#start_server): add log for
    	  test_filehandler.rb
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@28336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 10, 2010
  1. @shyouhei

    merge revision(s) 25342:

    shyouhei authored
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@28249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @shyouhei

    merge revision(s) 26159:

    shyouhei authored
    	* eval.c (rb_load): initialize orig_func.   [ruby-core:27296]
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@28246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 8, 2010
  1. @shyouhei

    merge revision(s) 28192:

    shyouhei authored
    	* regexp.c (re_compile_pattern): allow zero times match for
    	  non-greedy range repeatation. [ruby-core:30613]
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@28224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @shyouhei

    merge revision(s) 27721:27725,27738:27740:

    shyouhei authored
    	* pack.c: backport integer pack/unpack from 1.9 for [ruby-core:21937].
    	* configure.in: backport RUBY_DEFINT and fixed size integer checks.
    	* ruby.h: include stdint.h if available.
    	* bignum.c (rb_big_pack): defined..
    	  (rb_big_unpack): defined.
    	* intern.h (rb_big_pack): declared.
    	  (rb_big_unpack): declared.
    	* pack.c (pack_pack): call rb_quad_pack to preserve RangeError.
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@28220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  3. @shyouhei

    merge revision(s) 27720:

    shyouhei authored
    	* regex.c (read_special): get rid of overrun.
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@28219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  4. @shyouhei

    merge revision(s) 27487:

    shyouhei authored
    	* lib/net/imap (encode_utf7): encode & properly.  Thanks, Kengo
    	  Matsuyama.  [ruby-dev:38063]  backported from trunk.
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@28214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  5. @shyouhei

    merge revision(s) 27404:

    shyouhei authored
    	* file.c (rb_file_s_extname): skip last directory separators.
    	  [ruby-core:29627]
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@28212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  6. @shyouhei

    merge revision(s) 27398:

    shyouhei authored
    	* eval.c (search_required): expand home relative path first.
    	  [ruby-core:29610]
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@28210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 7, 2010
  1. @shyouhei

    merge revision(s) 26903:

    shyouhei authored
    	* ext/nkf/nkf-utf8/nkf.c (numchar_getc): get rid of buffer
    	  overflow.  [ruby-dev:40606]
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@28195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 22, 2010
  1. @shyouhei

    * test/net/http/test_connection.rb (TestHTTP::HTTPConnectionTest#tes…

    shyouhei authored
    …t_connection_refused_in_request):
    
              Wrong exception to assert.
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@27958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @shyouhei

    merge revision(s) 26553:

    shyouhei authored
    	* lib/net/http.rb (Net::HTTP#request): close @socket only after
    	  started.  [ruby-core:28028]
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@27955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  3. @shyouhei

    merge revision(s) 26534:26536:

    shyouhei authored
    	* eval.c (proc_invoke): reverted r25975.  [ruby-dev:39931]
    	  [ruby-dev:40059]
    	* eval.c (rb_mod_define_method): return original block but not
    	  bound block.  [ruby-core:26984]
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@27954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 20, 2010
  1. @shyouhei

    merge revision(s) 26346:

    shyouhei authored
    	* lib/webrick/httpservlet/filehandler.rb (make_partial_content):
    	  add bytes-unit.  [ruby-dev:40030]
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@27918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @shyouhei

    merge revision(s) 26326:

    shyouhei authored
    	* ext/zlib/zlib.c: backport r18029 and r21861 from trunk.
    	  * r18029 ext/zlib/zlib.c (rb_deflate_params): flush before
    	    deflateParams. [ruby-core:17675] (by mame)
    	  * r21861 ext/zlib/zlib.c (zstream_run): desperately guard the
    	    variable.  [ruby-core:20576] (by usa)
    	* test/zlib/test_zlib.rb: backport deflate tests from trunk.
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@27917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  3. @shyouhei

    merge revision(s) 26307:

    shyouhei authored
    	* lib/rss/maker/base.rb, test/rss/test_maker_0.9.rb:
    	accept any time format in maker. [ruby-core:26923]
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@27915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  4. @shyouhei

    merge revision(s) 26253:

    shyouhei authored
    	* io.c (io_fwrite): preserve errno.  [ruby-core:27425]
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@27913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Apr 2, 2010
  1. @shyouhei

    merge revision(s) 26131:

    shyouhei authored
    	* lib/net/http.rb (HTTPGenericRequest#send_request_with_body_stream):
    	  increased encoding chunk size for POST request with body_stream
    	  (1K -> 16K). patched by Brian Candler. #1284.
    	* test/net/http/test_post_io.rb: added for the patch. It's good if a
    	  patch comes with a test.
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@27172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Apr 1, 2010
  1. @shyouhei

    merge revision(s) 26103:

    shyouhei authored
    	* string.c (rb_str_inspect): wrong result of UTF-8 inspect because of
    	  the mistake of calculation.  reported by eban via IRC.
    
    
    git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8_7@27145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Something went wrong with that request. Please try again.