Project

General

Profile

« Previous | Next » 

Revision 0c9a719d

Added by akr (Akira Tanaka) about 12 years ago

  • internal.h (INTEGER_PACK_NEGATIVE): Defined.
    (rb_integer_unpack): sign argument removed.

  • bignum.c (rb_integer_unpack): sign argument removed.
    Non-negative integers generated by default.
    INTEGER_PACK_NEGATIVE flag is used to generate non-positive integers.

  • pack.c (pack_unpack): Follow the above change.

  • random.c (int_pair_to_real_inclusive): Ditto.
    (make_seed_value): Ditto.
    (mt_state): Ditto.
    (limited_big_rand): Ditto.

  • marshal.c (r_object0): Ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e