1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bignum.c (rb_quad_pack): should negate negative bignum.

(ruby-bugs-ja:PR#474)


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2003-05-25 14:48:26 +00:00
parent d5d2ca754b
commit c13ca74520
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Sun May 25 23:48:21 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
* bignum.c (rb_quad_pack): should negate negative bignum.
(ruby-bugs-ja:PR#474)
Sun May 25 03:27:25 2003 Minero Aoki <aamine@loveruby.net>
* lib/net/smtp.rb: support LOGIN authentication, based on

View file

@ -206,6 +206,7 @@ rb_quad_pack(buf, val)
q = BIGUP(q);
q += ds[len];
}
if (!RBIGNUM(val)->sign) q = -q;
}
memcpy(buf, (char*)&q, SIZEOF_LONG_LONG);
}